Configuring & Troubleshooting our WordPress User Roles Addon
What This Add-on Does
This add-on allows site owners to set specific WordPress user roles on a per-membership basis. Meaning you can assign different roles to your members based on the Subscription status. These roles are added in addition to the default role you have set up in your WordPress -> Settings -> General page. It does not replace the default role, or any other roles that may be added by other plugins like bbPress or WooCommerce.
This add-on will automatically add to or remove from the the user's existing roles appropriately depending on their subscription status to your memberships. If the user has no memberships active, then their role will default back to the role(s) set in your your WordPress settings as mentioned above.
What Can I Do With This?
There are a number of use-cases for this. But the most common would be to activate some additional features in other plugins based on the user's role. For example, you may have your forum plugin set up to allow users with certain roles to access forum groups that other users do not have access to. Or you might have an events plugin which allows you to allow members with certain roles to register at a discounted price. There are innumerable ways this can be used really - and we're excited to see what you come up with.
Installing & Configuring The Add-on
Step 1 - Install the WordPress User Roles Add-on
- Go to MemberPress -> Add-Ons page to install and activate the add-on.
- Now navigate to MemberPress -> Memberships -> where you'll now be able to see this add-on taking effect in the Advance Tab of each of your Membership's Options .
Step 2 - Set the Desired User Roles for Each Membership
- As you can see in the image above, the add-on will auto-populate with all of the standard WordPress user roles along with any custom ones that you or other plugins have set. Select the role(s) that you would like this particular membership to have. You can select more than one by holding the Control Key (Command Key on Macs).
- Repeat for as many memberships as you want.
MemberPress will do the rest from here.
Note: If you are unsure how to create your own custom user roles, then please reference the useful resources provided here by WordPress.
As always, feel free to shoot us an email from our support page if you need any assistance with this add-on.