This addon has a collection of miscellaneous shortcodes for the Simple Membership plugin. Over time more shortcodes will be added to it.
Once this addon plugin is installed and activated, you can use the shortcodes explained in this page.
Download the SWPM Misc Shortcodes Addon
Click here to download the addon.
Install the Addon
- Click on the Add New menu under the plugins interface.
- Go to the Uploader tab and upload the swpm-misc-shortcodes.zip file.
- Hit the Install Now button and then activate the addon.
Allow Members to Change/Update Their Membership Level
Normally, you charge members to upgrade their membership level to a new one. However, you may want to create a special page that you use to give your members the ability to update their level for free.
This shortcode allows you to create a button that the members can use to change/upgrade their membership level by clicking on it. It can be used to allow you members to renew a membership for free or give them access to a level for free.
You specify the Target Membership Level in the shortcode.
Below is an example of how to use this shortcode. 3 is the membership level ID value in this example (the members level will be upgraded to this level when they use this button).
[swpm_update_level_to level="3" button_text="Update Level to Silver"]
You can also redirect the members to a specific page after they use the button. The following example shows how to use the shortcode for that:
[swpm_update_level_to level="3" button_text="Update Level to Silver" redirect_to="http://example.com/some-page"]
You should protect the page that has this shortcode so only members or users or particular level can see and interact with the button.
Show the Member’s After Login Page’s Link
In some websites the “After Login Page” of a membership level is considered the homepage of that membership level. So you may want to put a dynamic widget on the sidebar that shows the after login page’s link.
If you want to show the link of the member’s after login page then use the following shortcode.
[swpm_show_after_login_page_link link_anchor="Your Home Page"]
Use the “link_anchor” parameters value to customize the anchor text of the link.
It will only show the link if the member is logged into the site and the membership level of the member has an “After Login Page” specified.