There may come a time where you need to ensure that the postal codes entered in by your UK customers are valid. The code recipe below uses the free third-party Postcodes.io API to validate the postal code upon checkout. This code recipe could be adapted to validate for other regions….
Our WooCommerce Integration allows you to sell Membership as a WooCommerce Product, among other features including member product discounts globally or per-product. If you are using WooCommerce to sell membership as a product, this recipe will display the level name associated with a product on the single product page.
This recipe demonstrates how to hide the First and Last Name fields on the Member Profile Edit page. It also shows how to rename the “Display name publicly as” field to just “Name”. If you want to add new profile fields to this page, please check out the Register Helper Add On….
The Membership Card Add On allows you to create a printable, customizable Membership Card for Paid Memberships Pro members or WordPress users. This article will cover four approaches to customizing the appearance and content of the card, including adding additional content such as an avatar, showing custom User Metadata, displaying a member number, or doing a complete overhaul to the template.
Many membership sites are collecting custom member profile data as part of their checkout process. If your site is also connected to a third party application through Zapier, you may want to include some of the user profile fields in the data your Zap receives. This code recipe demonstrates how to use the pmproz_after_checkout_data hook…
Not all membership levels are the same. So why should all of your membership levels have the same membership account page? This code recipe will allow you to craft a tailored experience and redirect your members to a unique membership account page based on their level.
Paid Memberships Pro includes an Admin Activity Email to send a periodic summary of your membership’s performance for the chosen term.
This recipe demonstrates how to use the
pmpro_cron_admin_activity_email function to add a new recipient at a different frequency from your primary site’s setting for this message.
Version 2.3+ of Paid Memberships Pro has a setting to block WordPress dashboard access for the “Subscriber” role. If you are using the Roles for Membership Levels Add On or other custom code to adjust member roles, you can use the pmpro_block_dashboard filter to block the dashboard for additional roles.
Version 2.3+ of Paid Memberships Pro now allows non-members to access the Membership Account page. We made this decision to allow non-member access so that past members could view their invoice history and easily renew their last level or view your Membership Levels page and compare all current options.
The code recipe below removes this feature and will redirect all users without a current membership level away from this page.