View my-pmpro-email-data-custom-message-per-level.php
<?php | |
/** | |
* This recipe adds a custom email shortcode !!custom_message!! that can be | |
* used in the Email Templates Admin Editor. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View my-pmpro-custom-checkout-email-template-per-level.php
<?php | |
/** | |
* This recipe sets a custom checkout email template and subject line per level. | |
* | |
* In this example recipe we created a custom email template for level ID's 1 & 2 | |
* in the "email" folder inside our customization plugin's directory. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. |
View my_first_last_display_name.php
<?php | |
/** | |
* Set Display Name on Membership Checkout and for BuddyPress Name field. | |
*/ | |
function my_first_last_display_name( $user_id, $morder ) { | |
// Get user's first and last name. | |
$first_name = get_user_meta( $user_id, 'first_name', true ); | |
$last_name = get_user_meta( $user_id, 'last_name', true ); |
View cancel-on-next-payment-date-expiration-date-email-variable.php
<?php | |
/** | |
* This recipe removes the cancel email filter for Cancel on Next Payment Date | |
* and creates the shortcode !!access_expire_date!! that can be used in the | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View hide-first-last-display-name-on-user-profile-page.php
<?php | |
/** | |
* This recipe removes the First Name, Last Name, and Display Name fields on the Member Profile Edit page. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View hide-profile-from-directory-by-default.php
<?php | |
/** | |
* This recipe defaults to hide a new member's profile from the directory | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View my-pmpro-account-bullets-levels-start-end-dates.php
<?php | |
/** | |
* This recipe shows the user's membership level's start and end date on the account page. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View remove-pmproarc-email-filter-if-pmproconpd-exists.php
<?php | |
/** | |
* This recipe removes the cancel email filter for Auto Renewal Checkbox | |
* if Cancel on Next Payment Date Add On is active to prevent duplication | |
* of the expiration notice "Your access will expire on [DATE]" in the email. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ |
View pmpror4c-conditional-email-body-string-replace.php
<?php | |
/** | |
* This recipe adds the reason for cancelling in the default cancel email templates | |
* if the email shortcode !!reason!! is not in the template. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ |
View change-level-cost-text.php
<?php | |
/** | |
* This recipe is an example of how to change or translate | |
* localized text strings for PMPro Custom Level Cost Text Add On. | |
* | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. |
NewerOlder