Use this shortcode to show specific information on the current “logged in” member.

Shortcode Attributes

The shortcode accepts four attributes:

  • field: Required; Specify which piece of member information to output. The available field values are those included the users table, usermeta table (including custom user fields or fields added by other plugins), and all fields related to membership that are stored in custom Paid Memberships Pro tables. You can only specify one value for the field attribute.
  • user_id: Optional; Set a specific User ID to show member info about. If you do not include this field, the shortcode will pull info from the current logged in user.
  • levels: Optional; Set the single level ID or a comma-separated list of level IDs to pull data for.
  • group: Optional; Set the specific Level Group ID to target all levels in that specific group.
[pmpro_member field="last_name"]

If you want to show multiple fields in the same section, repeat the shortcode like the following example:

Welcome, [pmpro_member field="first_name"] [pmpro_member field="last_name"]. It's good to have you here!

Supported “field” Values Include:

Membership Level Fields:

  • membership_id
  • membership_name
  • membership_description
  • membership_confirmation
  • 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
  • next_payment_date

Fields Stored in the users Table

  • user_login
  • user_email
  • user_url
  • user_registered
  • display_name

User Metadata:

  • first_name
  • last_name
  • (any meta_key from wp_usermeta)

Specialty Fields:

  • avatar

Note: This shortcode is very powerful. It’s capable of outputting any user or user meta field for the logged in user or a specific named user (by ID). For this reason and the potential privacy and security risks associated with displaying user info, only users with the edit_users capability (given to people with the Administrator role) can add this shortcode to content.

Much like how WordPress core filters the script tag from content before updating the database, we also filter out this shortcode. If a user without the edit_users capability adds this shortcode to post content (like a page, post, or CPT), widgets, or menus, we remove it before saving to the database. We will also remove the shortcode if it exists in post content and someone without this capability edits the post.

Last updated on March 26, 2026


Was this article helpful?
YesNo