What is User Roles?
User Roles integration allows site owners to set specific IdeaKit user roles on a per-membership basis. Meaning you can assign different roles to your members based on their Subscription status to your various memberships. These roles are added in addition to the default role you have set up in your IdeaKit -> 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 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 IdeaKit 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.
Configuring The User Roles
Step 1 – Locating the Settings
Navigate to MemberPress -> Memberships -> where you’ll be able to see this 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, this will auto-populate with all of the standard IdeaKit 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.