This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Template for adding a shortcode page to a plugin. Steps: | |
1. Include this file. | |
2. Add [my_page_shortcode] shortcode to a page of the site. | |
3. Navigate to the page on the front end. | |
Be sure to change the name of the shortcode and the function names below. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: PMPro WP Affiliate Platform Integration | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-dev/ | |
Description: Process an affiliate via WP Affiliate Platform after a PMPro checkout. | |
Version: .3 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
Both Paid Memberships Pro (http://wordpress.org/extend/plugins/paid-memberships-pro/) and WP Affiliate Platform (http://www.tipsandtricks-hq.com/wordpress-affiliate/) must be installed and activated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Cancel membership account on billing failure | |
function my_pmpro_subscription_payment_failed($old_order) { | |
pmpro_changeMembershipLevel(0, $old_order->user_id); | |
} | |
add_action('pmpro_subscription_payment_failed', 'my_pmpro_subscription_payment_failed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: PMPro Customizations (Register Helper Example) | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
Description: Customizations for Paid Memberships Pro (Register Helper Example) | |
Version: .1 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
*/ | |
//we have to put everything in a function called on init, so we are sure Register Helper is loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Register Helper Example | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
Description: Register Helper Initialization Example | |
Version: .1 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
*/ | |
//we have to put everything in a function called on init, so we are sure Register Helper is loaded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* PMPro GetResponse Custom Fields Example */ | |
function my_pmpro_getresponse_custom_fields() { | |
$fields = array( | |
'company' => 'XYZ Company', | |
'title' => 'CEO' | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: PMPro Customizations | |
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
Description: Customizations for Paid Memberships Pro | |
Version: .1 | |
Author: Stranger Studios | |
Author URI: http://www.strangerstudios.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Prorated payments. When a member chooses to upgrade, | |
he should be charged a pro-rated amount for the new membership level immediately, | |
and the payment date should stay the same. | |
Assumes initial payments are equal to billing amount. | |
Add this code to your active theme's functions.php or include this in a custom plugin. | |
*/ |
OlderNewer