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
Adding a Membership Login to Sidebar
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.
[swpm_login_form]
Adding a Mini Login Widget to the Header, Footer or Sidebar
The following shortcode can be used in the header, footer or sidebar of your website to display ‘Login’ and ‘Join’ buttons.
[swpm_mini_login]
Membership ‘Buy Now Style’ Payment Button
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.
[swpm_payment_button id=75]
Learn more about creating a:
Customizing the Payment Button
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"]
Paid Registration from the Thank You Page
Use the following shortcode on your membership’s thank you page to allow your members to register straight away from that page.
[swpm_thank_you_page_registration]
Custom Style for Stripe Payment Button
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"]
Registration Form/Page Shortcode
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.
[swpm_registration_form]
Login Page Shortcode
If you accidentally delete the original login page you can use the following shortcode to create the required page:
[swpm_login_form]
Edit Profile Page Shortcode
Use the following shortcode to recreate the ‘Edit Profile’ page.
[swpm_profile_form]
Password Reset Page Shortcode
Use the following shortcode to recreate the password reset page.
[swpm_reset_form]
Shortcodes that Relate to the Miscellaneous Shortcode Addon
Allowing Members to Upgrade/Swap Level for Free
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
Show Logged in Member’s Information
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.
[swpm_show_member_info column="first_name"]
[swpm_show_member_info column="last_name"]
[swpm_show_member_info column="email"]
[swpm_show_member_info column="membership_level_name"]
Showing Member Specific Information
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"]