LearnDash MemberDash Shortcodes
MemberDash shortcodes are versatile tools that allow you to insert dynamic membership functionality into any post, page, or widget on your WordPress site. By using these small snippets of code, you can display personalized account information, registration buttons, and protected content messages without needing to write custom PHP. This flexibility empowers you to build a highly interactive and user-friendly membership experience that adapts to each visitor’s status.
With MemberDash’s extensive library of shortcodes, you can easily create a comprehensive “My Account” area, display invoices directly to members, or add “Buy Now” buttons for specific membership tiers. You can also customize the user journey by adding logout links with specific redirects or showing “Thank You” messages after a successful signup. These shortcodes often come with various parameters, allowing you to fine-tune the appearance and behavior of each element to match your site’s design and workflow perfectly.
LearnDash MemberDash Shortcodes
This collection provides a detailed directory of MemberDash shortcodes for managing accounts, purchases, invoices, and content protection.
[ms-membership-thank-you-page]
Read more: [ms-membership-thank-you-page]The [ms-membership-thank-you-page] shortcode displays a notice after a user signs up for a membership. It is typically used on a Thank You page to confirm registration and provide next steps. The shortcode can also display fallback messages for users without a membership. Parameters Examples Basic usage to display a thank-you message: Custom fallback message and…
[ms-invoice]
Read more: [ms-invoice]The [ms-invoice] shortcode displays an invoice to a user. This shortcode is only useful for showing invoices to their recipients — it cannot be used to display invoices for other members. Parameters Example Display an invoice with ID 123: Conclusion The [ms-invoice] shortcode provides a way to display invoices directly to the recipient, with the…
[ms-membership-account]
Read more: [ms-membership-account]The [ms-membership-account] shortcode displays a personalized My Account page for the currently logged-in user. This page can include: Important: This shortcode does not display anything for visitors who are not logged in, but it will automatically display a login form instead. Shortcode Attributes You can customize the [ms-membership-account] shortcode using the optional attributes listed below.…
[ms-protection-message]
Read more: [ms-protection-message]The [ms-protection-message] shortcode displays a protection message on pages that users cannot access due to membership restrictions. This message helps users understand why they cannot view the content and what to do next. This shortcode is designed to be used only on the Protected Content page, which is configured under MemberDash > General Settings >…
[ms-membership-account-link]
Read more: [ms-membership-account-link]Inserts a simple link to the Account page label (Text) The contents of the link Default: “Visit your account page for more information” Example: Manage subscriptions in [ms-membership-account-link label=”your Account”] Was this article helpful? Yes No Thank you for your input. Thank you for your feedback.
[ms-membership-logout]
Read more: [ms-membership-logout]Displays a logout link. When the user is not logged in then the shortcode will return an empty string Common options redirect (URL) The page to display after the user was logged out Default: “http://learndash.lndo.site/” More options holder Wrapper element (div, span, p) Default: “div” holder_class Class for the wrapper Default: “ms-logout-form” Example: [ms-membership-logout] Was this article helpful? Yes No Thank…
[ms-membership-buy]
Read more: [ms-membership-buy]Displays a button to buy/sign-up for the specified membership Examples: Was this article helpful? Yes No Thank you for your input. Thank you for your feedback.
[ms-membership-details]
Read more: [ms-membership-details]The [ms-membership-details] shortcode displays the description of a specific membership. Attributes The [ms-membership-details] shortcode has the following attributes Attribute Description Default Value Id (required) Membership ID. It is used to detect the membership None label Label for text displayed before Membership description Membership details Examples: Shortcode output: Was this article helpful? Yes No Thank you…