Table of Contents
With the PublishPress Capabilities plugin, it is possible to hide a WordPress user role. If a role is marked as “hidden” it will not appear in any WordPress role selection options, but it can be used by developers.
Let's show you how this feature works:
How to hide a WordPress user role #
- Install the PublishPress Capabilities plugin.
- Install the PublishPress Permissions plugin.
- Go to “Capabilities” then “Roles: in your WordPress admin menu.
- For each custom role created, you will be able to select the “Hide” button:

What happens to hidden roles? #
If a role is marked as “hidden” it will not appear in any WordPress role selection options:
- Add User
- Edit User
- Change role to
The role will still be available in some areas of WordPress:
- It can be used a supplemental role in PublishPress Permissions.
- It can be used by plugins and themes. They can use the machine name of the role. The role will remain in the option name
wp_user_roles
in thewp_options
database table.
