Add Multiple Roles to One WordPress User
By default, there are five users roles in WordPress. Everyone with an account on your site will be placed into one of these five roles:
However, it is possible to add more user roles and to place users into multiple roles.
In this tutorial, I'll explain how and why you can place WordPress users into multiple roles.
A good example for multiple roles is WooCommerce. In the image below, you can see two new roles: “Shop manager” and “Customer”.
The “Customer” role in WooCommerce has almost no permissions. Users in this role can buy products, but normally they can't even access the WordPress admin area.
What happens if you want to give some customers extra permissions? One approach is to create a whole new user role. However, you can also give users an additional role.
For example, you can make some users a “Customer” but also give them the “Author” role so they can create content.
- Install the PublishPress Permissions Pro plugin.
- Go to the “Users” menu link.
- Click to edit a customer account:
- Scroll down and click the “customize this user directly” link:
On this page you can add supplemental roles for this user. For example:
- Choose “Post” from the “Post Type” dropdown.
- Choose “Author” from the “Role” dropdown.
- Click “Add Role” and “Save Role” to finish.
This “customer” will now also be able to act as as Author for all the Posts on your site.
Go back to the “Users” screen and you will be able to see the multiple roles listed next to the user account: