Hide a WordPress User Role

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 #

Hide A Role
Hide A Role

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 the wp_options database table.
Wp User Roles
Wp User Roles