I’ve been asked this simple question many times recently: “How do I display the current user’s membership level in my theme?”

This post details how to use the [pmpro_member] shortcode, included in the main plugin, to show specific information about the current logged in user’s membership.


Why would you want to do this?

We created the [pmpro_member] shortcode so that you can build a more robust and personalized experience on your membership site.


How to use the shortcode:

You can place this general shortcode anywhere in your site, either in post content or widgets, or via template files using the WordPress do_shortcode() function.


Available shortcode attributes:

The shortcode accepts one single parameter, with a specific set of values as listed below. These values will pull the data directly from the current logged in user record.

[pmpro_member field="membership_name"]

Supported “field” Values Include:

Membership Level Fields:
  • membership_id
  • membership_name
  • membership_code_id
  • membership_code
  • membership_initial_payment
  • membership_billing_amount
  • membership_cycle_number
  • membership_cycle_period
  • membership_billing_limit
  • membership_trial_amount
  • membership_trial_limit
  • membership_startdate
  • membership_enddate

Fields Stored in the users table
  • user_login
  • user_email
  • user_url
  • user_registered
  • display_name

Payment Fields Stored in user_meta:
  • bfirstname
  • blastname
  • baddress1
  • baddress2
  • bcity
  • bstate
  • bzipcode
  • bcountry
  • bphone
  • bemail
  • CardType
  • AccountNumber
  • ExpirationMonth
  • ExpirationYear


Learn more about General Shortcodes in Paid Memberships Pro »


Comments (2)

Hi PMP,

Could this be used on a member landing page? So it says, for example, “Welcome John Smith” at the top of a landing page?

Would I just need to put this?

Welcome [pmpro_member field="membership_name"]…

The shortcode would populate with the member’s name?

Leave a Reply

Your email address will not be published. Required fields are marked *