Adding UK Postal Code Validation to Your Website’s Checkout Form

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….

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Remove or Rename User Fields on the Member Profile Edit 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….

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Create a Custom Membership Card for WordPress Users and Members to Print or View Online

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.

Methods to Customize Membership Cards for WP Users and PMPro Members

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Send User Profile Fields to Zapier After Membership Checkout

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…

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Send an Additional Admin Activity Email at a Custom Frequency

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.

Send an Additional Admin Activity Email at a Custom Frequency

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Block Dashboard Access for Additional User Roles

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.

Block Dashboard Access for Additional User Roles

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now

Hide the WordPress Toolbar for Additional User Roles

Version 2.3+ of Paid Memberships Pro has a setting to hide the WordPress Toolbar (also known as the WordPress Admin Bar) 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_hide_toolbar filter to hide the toolbar for additional roles.

Hide the WordPress Toolbar for Custom Member Roles

This page requires a Plus Account or higher.


Already have an account?

Log In

New to this site?

Register Now