Skip Navigation

Setting up Custom Roles for Members in WordPress

Toolset Access plugin lets you create custom roles for your site's members and give them the correct privileges.

Follow these steps

  1. Go to the ToolsetAccess Control page and click the Custom Roles tab.
  2. Use the Add new role button to add the roles that you need. You can add as many custom roles as you like.

As a starting point, you can copy the default privileges from the Subscriber role. Of course, you can go ahead and set your own privileges for each role.

Adding custom user roles using Toolset Access

Toolset saves custom roles the same way as WordPress saves the built-in roles. This means that other plugins will see your custom roles.

Using multiple roles per user

Toolset allows users to have multiple roles. This includes roles that you create and assign as well the ones assigned by other plugins, like WooCommerce, automatically.

Use the following steps to assign multiple roles to a user yourself:

  1. In the admin, click Users in the main menu. In the list, click the user you want to edit.
  2. On the Edit User page, scroll to the Name section.
  3. Use the Role dropdown to select the main user role.
  4. Use the Additional roles option to select one or more roles.

Assigning multiple roles per user
Assigning multiple roles per user

The Role dropdown defines the main user role. This means that when you check against the user’s role, this is the one that will be used first.

For example, if you set up a conditional that checks if current user has a particular permission, Toolset will check the main role first. If the main role doesn’t have the permission, Toolset will check the secondary, additional roles assigned to the user. If any of the roles have that permission, the check will result as true.

December 9, 2020