View show_gravatar_pmpro_account_bullets_top.php
<?php | |
/* | |
* Show a link to Gravatar and an avatar preview on the Profile section of the Membership 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/ | |
*/ | |
function show_gravatar_pmpro_account_bullets_top() { |
View custom_suffix_pmpro_affiliates_new_code.php
<?php | |
/** | |
* Filter to adjust the generated code for the Affiliates Add On. | |
* | |
* 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 custom_manage_memberslist_columns.php
<?php | |
/** | |
* Remove default columns from the Members List. In this example, we are removing Level and Level ID columns. | |
* You can also optionally toggle these columns off manually in the "Screen Options" area. | |
* | |
* 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_mailchimp_listsubscribe_fields.php
<?php | |
/** | |
* Sync additional user fields to Mailchimp. | |
* You must create the fields in Mailchimp first. | |
* Or, you can use the `pmpro_mailchimp_merge_fields` filter to create them through the API. | |
* | |
* 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 option_pmpro_showexcerpts_on_pages.php
<?php | |
/* | |
* Override the Advanced Setting to hide excerpts if this is 'page' post type. | |
* | |
* 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 option_pmpro_showexcerpts_on_addon_packages.php
<?php | |
/* | |
* Override the Advanced Setting to hide excerpts if this is an Addon Package single post. | |
* | |
* 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 memberlite_remove_prefix_from_the_archive_title.php
<?php | |
/** | |
* Remove the prefix if it is a category archive or post type archive. | |
* | |
* You can add this recipe to your site by creating a custom plugin, | |
* adding the customization to a Memberlite child theme, | |
* 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://memberlitetheme.com/create-a-plugin-for-customizations-to-your-memberlite-site/ | |
*/ |
View next_last_payment_dates_members_list.php
<?php | |
/** | |
* Adds last payment date and next payment date to the members list and export CSV. | |
* Note that "last payment" value will get the last order in "success", "cancelled", or "" status. (Oddly enough, cancelled here means that the membership was cancelled, not the order.) | |
* | |
* The "next payment" value is an estimate based on the billing cycle of the subscription and the last order date. It may be off from the actual recurring date set at the gateway, especially if the subscription was updated at the gateway. | |
* | |
* 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 maybe_add_choose_level_section_swsales.php
<?php | |
/** | |
* Hide the membership pricing box on Landing Page checkout form and replace with our own. | |
* | |
* Requires Paid Memberships Pro and Sitewide Sales. | |
* | |
*/ | |
function maybe_add_choose_level_section_swsales( $include_pricing_fields ) { | |
global $wpdb, $pmpro_level; |
NewerOlder