Paid Memberships Pro comes with several shortcodes and blocks that can be used to insert plugin-generated content or hide/show content based on membership level inside posts, pages, widgets and more.
Table of contents
Membership Blocks
Paid Memberships Pro supports the WordPress Block Editor with 15 blocks included in the core plugin. We’re also extending Add Ons where a Block would make sense. Explore how these blocks will make it easier to design and manage your WordPress Membership Site.
Page Shortcodes
Members have access to several frontend pages that allow them to manage their membership account and user profile. In most cases, these shortcodes will be added to pages automatically generated via the setup wizard or in step 2 of the initial plugin setup and do not need to be added manually. This page covers the 9 frontend pages and the appropriate shortcode to place on each page. If you are using the Block Editor, you can swap the shortcodes on these pages with their related block.
General Shortcodes
These shortcodes can be used anywhere in your site, either in post content or widgets, or via template files using the WordPress do_shortcode
function. General shortcodes include:
- [membership] shortcode to hide and show post or page content based on membership level
- [pmpro_member] shortcode to show specific information on the current “logged in” member.
- [pmpro_checkout_button] shortcode to inserts a formatted link to the checkout page for the attributed membership level.
Shortcode Recipes
These shortcodes are currently available as premium code recipes or Add Ons. The shortcode function needs to be included in a plugin for PMPro Customizations (not included in the main Paid Memberships Pro plugin).