In progress....this is a layout mimicking a Bootstrap multi-row layout.
A Pen by Eileen Violini on CodePen.
In progress....this is a layout mimicking a Bootstrap multi-row layout.
A Pen by Eileen Violini on CodePen.
<?php | |
function my_pmpro_confirmation_url($rurl, $user_id, $pmpro_level) | |
{ | |
if(pmpro_hasMembershipLevel(1)) | |
$rurl = "http://example.com/page_1"; | |
elseif(pmpro_hasMembershipLevel(2)) | |
$rurl = "http://example.com/page_2"; | |
elseif(pmpro_hasMembershipLevel(3)) | |
$rurl = "http://example.com/page_3"; |
/* | |
Sync fields to MailChimp | |
*/ | |
function sidetrack_mailchimp_listsubscribe_fields($fields, $user) | |
{ | |
$new_fields = array( | |
"NEWSLETTER SELECTION" => $user->sidetrack_newsletter_selection); | |
$fields = array_merge($fields, $new_fields); | |
<?php | |
/** | |
* Show next payment date under 'Expiration' field in PMPro account page. | |
* Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
* Works for PayPal Express and Stripe payment gateways. | |
* www.paidmembershipspro.com | |
*/ | |
// Change the expiration text to show the next payment date instead of the expiration date | |
// This hook is setup in the wp_renewal_dates_setup function below | |
function my_pmpro_expiration_text($expiration_text) { |
<?php | |
/** | |
* customize_pmpro_login_redirect_url Creates conditions for each level to have its own confirmation URL | |
* | |
* @param [type] $return_url Different URL for each level | |
* @param [type] $request URL the user is coming from, ie login url. | |
* @param [type] $user user data | |
* @return [type] The URL of the level for user logging in | |
*/ | |
function customize_pmpro_login_redirect_url( $return_url, $request, $user ) { |
<?php | |
/** | |
* Redirect user based on user role after successful login. | |
* | |
* $pmpro_pages returns an array: | |
* * $pmpro_pages['account'] | |
* * $pmpro_pages['billing'] | |
* * $pmpro_pages['cancel'] | |
* * $pmpro_pages['checkout'] | |
* * $pmpro_pages['confirmation'] |
<?php | |
/** | |
* Add to PMPro Customizations plugin. Be sure not to include the opening php tag in line 1. | |
* | |
* Add this your customizations plugin to alter text for PMPro Add On Packages. | |
*/ | |
add_action( 'pmpro_invoice_bullets_top', 'pmproap_pmpro_invoice_links_top' ); | |
add_action( 'pmpro_invoice_bullets_top', 'pmproap_pmpro_member_links_top' ); | |
function pmproap_pmpro_invoice_links_top() { | |
$invoice_title = 'Purchased Add Ons'; |
<?php | |
function my_pmpro_members_list_csv_extra_columns($columns) | |
{ | |
$columns["donation"] = "my_extra_column_donation"; | |
return $columns; | |
} | |
add_filter("pmpro_members_list_csv_extra_columns", "my_pmpro_members_list_csv_extra_columns", 10); |
<?php | |
/* | |
->Desc: Custom PMPro Member Directory template that links directory entry to their BuddyPress profile instead of the PMPro Member Directory Profile | |
->To use: copy this file (directory.php) into [YOUR ACTIVE THEME]/paid-memberships-pro/pmpro-member-directory/ | |
*/ | |
/* | |
This shortcode will display the members list and additional content based on the defined attributes. | |
*/ |
<?php // do not add to your customizations plugin | |
/** | |
* An extension allowing existing members to login from the main checkout page to their account to renew or update their membership. | |
*/ | |
add_action( ‘pmpro_checkout_after_pricing_fields’, ‘a_little_login_thing’ ); | |
function a_little_login_thing() { | |
$label = ucwords( preg_replace( ‘/-+/‘, ’ ‘, substr( basename( __FILE__ ), 0, -4 ) ) ); | |
echo ‘<h4> The filter, <span style=“color:grey;“>’ . current_filter() . ‘</span>, calls this function: <span style=“color:grey;“>’ . __FUNCTION__ . ‘</span> on Line ’ . __LINE__ . ' of the file ' . basename( __FILE__ ) . ' in the ' . $label . ' plugin</h4>‘;//a diagnostic line you can remove |