The Custom Messages Addon allows you to personalize specific messages generated by the membership plugin. This feature is particularly useful if you are not running a ‘typical’ membership site.
Table of Contents
- Download & Installation
- Addon Usage Instructions
- Message Customization Example
- List of Customization Options
- Using HTML Code
- Customizing the Appearance of the Message Using CSS
- Using with the After Login Redirection Addon
- Dynamic Merge Tags for Member Profile Information
- Explore All Addons/Extensions
Download & Installation
Click Here to download the custom messages addon.
Addon Usage Instructions
After you install this addon, go to the “Custom Message” menu from the admin dashboard of the membership plugin.
It is here you will see a number of fields where you can enter text of your choosing. The text you enter will then replace the typical message output by the membership plugin.

You can override the default message of the plugin by specifying a custom one.
Message Customization Example
Lets say you wanted to customize the following standard post/page protection message:

Go to the “Custom Message” menu and enter your message in the Restricted Post (No Logged In) field to customize it.
A customized example that you may wish to base your own off can be found below:
Wishing to view this content? Why not <a href="https://www.yourloginpage.com">Login</a> or <a href="https://yourjoinuspage.com">Join Us Now</a>.
List of Customization Options
Below you can find a screenshot that includes all the messages that you can customize when using this addon on your WordPress site. After you have completed your custom messages ensure you click the Save Changes button.

Using HTML Code
You can use HTML code in the custom message also. So for example, you could use something like the following:
This is a custom message. Here is a test <a href="example.com">link</a>
Or something like the following so you can customize the output using CSS:
<div class="swpm-custom-expired-msg">Your account expired. This is a custom message that I can tweak with CSS too.</div>
Customizing the Appearance of the Message Using CSS
You can attach a CSS class to your message by using the HTML Code option (see the above example in this page).
Once you attach a CSS class to the message, you can target the CSS class and apply CSS tweaks to customize the appearance of the message (example: make the font color red).
Example: The following CSS tweak will make the “Account Expired” message (see the above example where we used this HTML code) appear in a box by applying a border and padding to it:
.swpm-custom-expired-msg{
border: 1px solid #CCCCCC;
padding: 10px 20px;
}
You can add custom CSS tweaks to your site by adding the CSS code in the following interface of your site:
Appearance -> Customize -> Additional CSS
Using with the After Login Redirection Addon
If you are using the After Login Redirection addon and you have enabled the Redirection to the Last Page feature then you need the login URL to be dynamically created with the “swpm_redirect_to” parameter appended to the Login URL. This addon has the following dynamic merge tag that can be used in your custom message. The dynamic merge tag will be replaced by the addon (with the correct parameter values) when the message is displayed on the front-end.
{login_url}
Below is an example value that you can use in the Restricted Post (No Logged In) field to customize it with a link to the login page:
This content is protected. Please <a href="{login_url}">login</a> to view the protected content.
The value of the {login_url} tag will be dynamically replaced by the addon with the appropriate values when the page is loading on the front-end.
Dynamic Merge Tags for Member Profile Information
It supports the following dynamic merge tags for various profile information of logged-in members.
Note: These tags can be used in messages shown to logged-in members.
- {first_name} – Member’s first name
- {last_name} – Member’s last name
- {email} – Member’s email address
- {member_id} – Member ID
- {user_name} – Member’s username
- {account_state} – Account State
- {membership_level} – Membership Level ID
- {membership_level_name} – Membership Level Name
- {phone} – Phone number (if available)
- {member_since} – Member since date
- {subscription_starts} – Subscription start date
- {company_name} – Company name
- {primary_address} – Member’s address
Explore All Addons/Extensions
To view all available addons for the Simple Membership plugin, visit the Addons Page.