This documentation page has a list of the shortcodes available in the Simple Membership Plugin.
Many of these shortcodes need context to understand what they do and how they should be used. So you should go through all the individual documentation from our documentation page to get the full picture.
General Usage Shortcodes
The following shortcode will allow you to add a membership login widget to the sidebar of your website. This allows your customers to easily login to your membership site.
The following shortcode can be used in the header, footer or sidebar of your website to display ‘Login’ and ‘Join’ buttons.
The following is an example shortcode of a Simple WordPress Membership payment button. You can create your payment buttons in the ‘Payments’ menu of the plugin.
Learn more about creating a:
The following shortcode uses the words ‘Join Now’ although you can customize this to suit your membership site (for example, ‘Signup Here’ or ‘Join Us’).
[swpm_payment_button id=75 button_text="Join Now"]
Use the following shortcode on your membership’s thank you page to allow your members to register straight away from that page.
You can specify a custom CSS class for the button using the “class” parameter in the shortcode. Then you can define your own custom CSS for that class. The shortcode below will add “my-stripe-button” class to the button so you can target that class and customize the CSS.
[swpm_payment_button id=75 button_text="Pay Now" class="my-stripe-button"]
The following shortcode is used on the registration page. It handles registration of all levels based on the user’s action. If you have accidentally deleted the registration page (or any of the required pages created by our plugin) then read this page.
If you accidentally delete the original login page you can use the following shortcode to create the required page:
Use the following shortcode to recreate the ‘Edit Profile’ page.
Use the following shortcode to recreate the password reset page.
Shortcodes that Relate to the Miscellaneous Shortcode Addon
The following shortcode is useful to allow your members to upgrade their account for free. Note: To use this shortcode you will need the Misc Shortcode Addon. The second shortcode shows how you can then redirect the member to a specific page.
[swpm_update_level_to level="4" button_text="Update Level to Silver"]
[swpm_update_level_to level="3" button_text="Update Level to Silver" redirect_to="http://example.com/some-page"]
Shortcodes that Relate to the Show Member Information Addon
The following shortcodes can be used to show specific information about a logged in member. The following shortcodes can only be used after you have installed the Show Member Information Addon. Using the following shortcodes you can show a member’s first name, last name, email and membership level.
By typing in a member’s Id you can show their first name, last name and email. Note: To use the following shortcodes you will need the Show Member Information Addon.
[swpm_show_member_info column="first_name" member_id="1"]
[swpm_show_member_info column="last_name" member_id="1"]
[swpm_show_member_info column="email" member_id="1"]