Help Docs Software LearnDash LearnDash MemberDash LearnDash MemberDash Shortcodes [ms-member-info]

[ms-member-info]

The [ms-member-info] shortcode displays details about the current member. It can show profile information such as name or email, or list the memberships a user belongs to. It can also display custom fields when defined through the API.

Parameters

  • value (email | firstname | lastname | fullname | memberships | custom)
    Defines which value to display. Default: fullname
  • default (text)
    Text to display when the defined field is empty. Default: empty
  • before (text)
    Text to display before the field value (only if the field is not empty). Default: <span>
  • after (text)
    Text to display after the field value (only if the field is not empty). Default: </span>
  • custom_field (text)
    Used only when value="custom". Defines the name of the custom field to display. Default: empty
  • list_separator (text)
    Separator used when the field value is a list (e.g., memberships). Default: ,
  • list_before (text)
    Text to display before a list value. Default: empty
  • list_after (text)
    Text to display after a list value. Default: empty
  • user (user ID)
    Display data for a specific user. If not specified, data is shown for the current logged-in user. Default: 0

Examples:

[ms-member-info value="fullname" default="(Guest)"]
[ms-member-info value="memberships" default="Sign up now!" list_separator=" | " before="Your Memberships: "]
Was this article helpful?