How do I hide my super admin from the users list?
My client has to be the ability to create users, but not edit/see my super admin user.
Is that possible?
2 comments
Comments are closed.
How do I hide my super admin from the users list?
My client has to be the ability to create users, but not edit/see my super admin user.
Is that possible?
Comments are closed.
I would recommend the following:
The Editor user role in WordPress cannot by default edit users. You may want to add that capability for clients whom you keep as ‘Editors’. This will let the Editor add new users (create new users), delete users, and edit users. This is done by adding capabilities to the Editor role with ‘
add_cap
‘.Option 1: Hide specific users from user list.
If you want to choose individual IDs to hide from the User list, use this (replace ‘
2,5,7,9
‘ the User IDs which you want to hide)Option 2: Hide all administrators from user list.
Related links:
– Roles and Capabilities
–
add cap
–
WP_Role::add_cap
–
WP_User::add_cap
This should help you, I guess (only make sure you’re hiding proper user):
Remove Ability for Other Users to View Administrator in User List?
Also look at this one:
Remove Adminstrator Hyperlink from a user having role to add and see users