Table of contents
Written by:
Martin Barrett
Last Updated:
Paid Memberships Pro Shortcodes

All Paid Memberships Pro Shortcodes (Complete List)

If you’ve been using WordPress for your business or personal blog, you’ve probably heard of shortcodes.

Shortcodes are an incredibly helpful tool that can speed up your website editing process and give you a more ‘hands-off’ experience.

Paid Memberships Pro is a popular WordPress integration that, like many others, comes with its own built-in shortcodes to help you use the theme and design your site.

But what exactly are paid memberships pro shortcodes, and how do you use them?

What Are Shortcodes?

Okay, first things first – what are shortcodes? Shortcodes are shortcuts + code.

These small pieces of code are usually displayed in brackets [hello], and they’ll help you perform different functions on your WordPress site.

Don’t be deterred by the word ‘code’.

You’re not expected to code a whole site, and using shortcodes is actually pretty simple, even if you’re not that experienced with coding.

You can add your WordPress shortcodes almost anywhere you want on your site, and it will add a specific feature to that area.

For example, you could use a piece of shortcode to display a music playlist on a particular post. Simply type in the shortcode, and it will display automatically.

This is one of the great things about WordPress – because it’s an open-source platform, you can add in as many customizations as you like, and even if you don’t have any development experience, WordPress makes it easy to take control of your website and bring your vision to life.

How To Use Shortcodes In WordPress?

So, we’ve introduced you to the basics of WordPress shortcode, but how do you actually use it on your website?

Before we take a closer look at Paid Memberships Pro specific shortcodes, if you’re new to shortcodes, you should also know that WordPress includes a few of its own.

Some of the default shortcodes included with WordPress are:

  • Gallery: This will add an image gallery to your website
  • Embed: With embed, you can set dimensions for any item, like a picture on a post
  • Audio: You can insert audio files onto your site and allow playback
  • Video: You can add a video file that your users can playback
  • Playlist: With the playlist shortcode, you can add a video or audio playlist to your website
  • Caption: This lets you include captions to any of your content

Like any shortcode, you can use these shortcodes by copying and pasting them directly into your WordPress site.

Shortcode is usually inserted onto a specific post or a page; however, you can also add them in via the WordPress editor and place them on a text widget or a custom post type.

What Is Paid Memberships Pro?

Paid Memberships Pro is a WordPress membership plugin that gives its users all the tools they need to manage and grow a membership website.

Paid Memberships Pro is a free plugin that comes with a number of impressive features, and it offers its users a simple and intuitive user experience.

With Paid Memberships Pro, you can set up membership levels, create membership pages, add in different payment gateways, restrict access to certain content, and more.

Does Paid Memberships Pro Offer Shortcode?

Yes! Like most other WordPress plugins, Paid Memberships Pro includes a variety of shortcodes and blocks that can be used to edit your site and hide or show content depending on your user’s membership levels.

Want to learn more? Let’s take a look at some of the most common shortcodes used by Paid Memberships Pro users.

For more information about Pricing. Please click here.

Page Shortcodes

Paid Memberships Pro users can use a number of frontend pages, all of which allow them to manage their profiles and membership accounts.

Usually, page shortcodes are added to these pages automatically when you set up the plugin, so you won’t even need to add them manually!

General Shortcodes

You’ll also have access to general shortcodes.

Unlike page shortcodes, these shortcodes can be used anywhere on your website, and they can be accessed with the [do_shortcode] function.

Shortcode Recipes

Last but not least, we have shortcode recipes.

Although Paid Memberships Pro is a free plugin, you’ll need to be a paying, premium member to gain access to shortcode recipes.

These codes are available as premium recipes or add-ons, and they’re NOT included in the Paid Memberships Pro plugin.

You’ll need a plugin for PMPro Customizations to use these. Here’s a list of the specialty shortcodes available in Paid Memberships Pro.


This shortcode allows you to set your own discount codes for older members. You can display a link for a discounted checkout to older members only.


The [haspaid] shortcode lets you show specific content to either paying or non-paying members only.

This gives you more control over how you restrict certain sections of your website.


With this option, you can display a count of your members according to their status or level simply by using this shortcode.

This is for your benefit only, and it won’t be published on your website.


You’ll be able to view the expiration date of memberships for any current users that are logged in.

You can also see expiration dates for users by specifying the ‘user’ attribute.


If you ever need to, you can use this shortcode to lock someone’s membership level or lock the membership of all users at a specific level for a certain time period.



You can give each of your membership levels its own unique badge or image and show it off using a shortcode function or a template PHP function.

[pmpro_member_directory] / [pmpro_member_profile]

You can improve your membership site by including a searchable directory for either public or private members.

You can also add customizable member profile pages for a better user experience.


With this shortcode, you’ll be able to offer users a simple signup experience form that you can place on any page of your site.

You can use different attributes of the shortcode to decide level ID, which fields you want to display if you want an email-only signup experience, and much more.

Adding Shortcodes In Pages And Posts

Adding shortcodes to specific pages and posts is simple.

This process works with any shortcode, including Paid Memberships Pro and general WordPress shortcodes.

First off, head over to your page/post editor in the area where you want to add your shortcode.

If you use the WordPress Gutenberg editor, you can also add your shortcode tag in the ‘shortcodes block’, which can be seen in the widgets sections of the editor.

If you’re using the designated shortcode block, simply type in your shortcode in the space next to [/] shortcode, and you’re done!

If you’re using the classic editor or plugin, things are just as simple.

Simply type in your desired shortcode tags into the editor – your shortcode may even come with a button on the editor screen, where you can insert them with just a click.

Adding Shortcodes To Sidebar Widgets

If you don’t want to add your shortcodes to a specific page or post, you can also add them to your sidebar widgets.

To do this, simply navigate to Appearance > Widgets and then select a Text widget to add to the area where you want to include a shortcut.

Under the widgets section, you’ll see a number of available widgets, including archives, calendar, audio, custom HTML, meta, navigation menu, and more.

Once you click on the one you want, the ‘main sidebar’ option will appear. This is where you can add the text widget, which will display as Text: Created with Shortcode.

Once you’re here, you can paste your desired shortcode into the Text widget and hit Save.

If you need to, you can navigate to the front end of the site and see the shortcode output in the sidebar.

Adding Shortcodes In The Header And Footer

Although most shortcodes are meant for posts, widgets, and pages, it is possible to add shortcodes anywhere to your site – including in your headers and footers.

If you want to add shortcodes to your headers and footers, there are several options.

For example, you can add a CTA button in your footer with the do_shortcode () callback function.

Can You Create Your Own Shortcodes In WordPress?

Yes! If you want more options than the WordPress or Paid Memberships Pro shortcodes offer you, you can create your own shortcodes.

However, this isn’t always an easy process, and we wouldn’t recommend it for complete beginners.

You’ll probably find that WordPress and your plugins offer enough shortcodes as it is, so there’s usually no need to create your own.

However, if you do want to create your own shortcodes, here’s how you can do it.

Create A New Theme File

Ideally, you should back up your site first and then create a separate file to add your custom shortcode separate to your themes functions.php file.

You can use an FTP client to view your site’s theme files, find the folder for your current theme, and then create a new file in this area.

Once you’ve done this, simply open up the new folder you’ve created (in the default text editor), and add the code <?php?>. This means your new file will be interpreted as PHP.

You’ll also need to open the functions.php file in the folder and include the code (‘custom-shortcodes.php’) at the bottom.

Create Shortcode Function

Now, you can create a shortcode function. Add the code:

function subscribe_link(){return ‘Follow us on <a rel=”nofollow”href=”″>Twitter</a>’;}
add_shortcode(‘subscribe’, ‘subscribe_link’);

Add Self-Closing Shortcode To The Website

You’ll now need to test your initial code on your WordPress site.

You can do this by using the WordPress block editor and inserting the [subscribe] tag directly into a post.

If you’re happy with the way the shortcode shows up on your website, you don’t need to do anything from here.

If you want to customize it a bit more, you can move on to the next step.

Adding Parameters With Shortcode

If you want to adapt your ‘subscribe’ shortcode to display other social media links, you’ll simply need to add a parameter to change the URL.

You can add in different handling attributes by opening the custom-shortcodes.php file and adding this code:

function subscribe_link_att($atts) {
$default = array(
‘link’ => ‘#’,
$a = shortcode_atts($default, $atts);
return ‘Follow us on ‘.$a[‘link’];
add_shortcode(‘subscribe’, ‘subscribe_link_att’);

This code will allow you to add different links in your shortcode tag and include them with the Gutenberg editor.

Test Parameters

Now you’ve updated the shortcode, you’ll need to test it. Test your parameters with a self-closing shortcode to see if your URLs work.

Create Enclosing Shortcode

Enclosing shortcode should be created and added to your custom-shortcode.php file.

When your enclosed shortcode is ready, you can go ahead and save your changes, and you’ll be done!

Add Your Code To The Website

Now, the final stage of the process is to add your new enclosed shortcode to your website.

You can do this via the WordPress block editor, as you would with other shortcodes, to see your results. As you can see, creating your own shortcodes can be tricky business.

This is just a rough guide on how the process works. If you want to create your own shortcodes, there are a few extra steps you’ll need to complete.

For more information, we’d advise talking to an experienced coder or visiting the WordPress site for more information.

The Bottom Line

Like most other WordPress plugins, Paid Memberships Pro comes with its own shortcodes to add to your site.

Shortcodes can make editing your site a breeze, and you don’t need any real coding experience to use them!

However, making your own shortcodes is far more complex, and we wouldn’t advise trying it unless you have previous coding experience or an experienced coder to help you.

We hope you’ve enjoyed learning the ins and outs of shortcodes and how Paid Memberships Pro’s own shortcodes can help you enhance your WordPress site.

Within contemporary internet culture, it has become easier than ever to obtain online qualifications, and there are near countless institutions...
Offering courses in fields such as data science, machine learning, and programming, DataCamp is a popular online learning platform used worldwide....
Online education is a commonplace and important tool in modern times, allowing those with other commitments and business interests to...
Who doesn’t love grilled BBQ food? Even though grilling might seem like an easy way to prepare some food for...
Learning to draw can be quite a difficult endeavor, learning to draw not only requires good discipline and plenty of...