Customize the Membership Checkout Confirmation Email for Membership Renewals
This code recipe allows you to send a custom email template for members who renew their membership. The email replaces the standard checkout template a first time member would have received (i.e....
View ArticleNew Method to Load Custom Templates for PMPro-Generated Pages or...
v1.8.9 of Paid Memberships Pro includes the new function pmpro_loadTemplate that we use when loading any of the plugin-generated pages or system-generated emails. Having a central function to load...
View ArticleDisplay Custom Membership Level Options Based on Current User’s Level
I was recently asked how a site could customize their membership levels page to show different levels to the visitor and the logged-in member (for “upgrade” levels). This is useful if you have a...
View ArticleChange Frontend Text for Addon Package Purchase Using WP’s gettext Filter
This code recipe shows you how to use the gettext filter in WordPress to change some of the frontend text generated in the Addon Packages plugin. It updates the message shown for the...
View ArticleDisplay a Count of Members by Level and/or Status via Shortcode
This nifty little shortcode will output the number of members in a level (or across all levels). The output displays a message in the format: “This site has 25 Gold members”, or you can define the...
View ArticleRestrict Membership Signup by Country
This code recipe allows you to restrict members in specific countries from signing up. The restricted countries are defined in a $restricted_countries array of level IDs and country codes (see the...
View ArticleSister Plugin for Addon Packages: Apply Parent Page’s Protection to All Child...
If you’re using Addon Packages to sell “à la carte” access to a single page, this sister plugin will extend the page protection to all child pages. If the feature proves popular, it may become a...
View ArticleAward MyCRED Points for Membership Level Checkout
If you’re using MyCRED or considering a system to award users for interacting with your WordPress powered website, this code recipe will set up a custom MyCRED hook to award points when a member signs...
View ArticleMembership Logic to Enable or Disable Popups for Popular WordPress Popup Plugins
Using popups to generate more membership signups or show exclusive offers to members only can be a great addition to your membership site. But, how do you filter popups to target the RIGHT audience?...
View ArticleAdvanced Category Techniques for Filtering Searches and Archives to Members...
If you’ve set the option “Filter Searches and Archives” to “Yes” under the Memberships > Advanced Settings page, all of the posts in your members-only categories will be hidden from the main page,...
View ArticleSend a Member’s Address Fields to MailChimp
Our MailChimp Integration adds members to assigned lists within your MailChimp account. This code recipe demonstrates how to include the member’s billing address fields in the data sent to MailChimp....
View ArticleDisplay Your Business Address and VAT Number (optional) on Membership Invoice...
Provide members with your business address and VAT Number for tax and recording keeping purposes using this simple code recipe. The recipe will add your information to the Membership Invoice screen and...
View ArticleLock Posts to Members-Only After Specific Timeframe
Allow public access to your members-only content for a set timeframe. The example below allows all members-only posts to be viewed for 24 hours, after which membership will be required to view. This...
View ArticleSet the bbPress User Profile as Membership Account Page
If you’re using bbPress for your membership site, the code recipes below are designed to streamline the member’s various profile/account pages into one primary dashboard: the forum user profile...
View ArticleBest Practices for Member Log In and Log Out
Easily add a front-end log in, log out, and password reset experience to your membership site by following the steps covered in this post. We’ll outline our recommended third party plugin for front-end...
View ArticleRestrict Membership Signup by Country
This code recipe allows you to restrict members in specific countries from signing up. The restricted countries are defined in a $restricted_countries array of level IDs and country codes (see the...
View ArticleSister Plugin for Addon Packages: Apply Parent Page’s Protection to All Child...
If you’re using Addon Packages to sell “à la carte” access to a single page, this sister plugin will extend the page protection to all child pages. If the feature proves popular, it may become a...
View ArticleAward MyCRED Points for Membership Level Checkout
If you’re using MyCRED or considering a system to award users for interacting with your WordPress powered website, this code recipe will set up a custom MyCRED hook to award points when a member signs...
View ArticleMembership Logic to Enable or Disable Popups for Popular WordPress Popup Plugins
Using popups to generate more membership signups or show exclusive offers to members only can be a great addition to your membership site. But, how do you filter popups to target the RIGHT audience?...
View ArticleAdvanced Category Techniques for Filtering Searches and Archives to Members...
If you’ve set the option “Filter Searches and Archives” to “Yes” under the Memberships > Advanced Settings page, all of the posts in your members-only categories will be hidden from the main page,...
View Article