Hide Editor Role from drop down in Add New User /User List
-
Hi there,
I have 3 membership levels, apart from Admin.
The editor is the website admin and he can add, edit and delete users.
The second role has the same capability of adding, editing and deleting users.However, if possible I want the second role only to be able to add a new user with a capability lower than himself.
Additionally, I do not want the editor or the 2nd user role, to have the option to select editor role as a role for the new user, from the drop down menu in user profile.
So basically I need to completely remove the editor user role from the selection drop down box (just like administrator is hidden currently). I have already disabled “promote user” for editor role and 2nd user role, so in users list view, they can’t change the user role to editor using bulk actions, but when they add a new user or edit an existing user profile, the editor role appears as an option to select in the drop down on the user’s actual profile page in wp-admin, and this I can’t have.
If someone can please help me out with a piece of code that I can drop into functions or somewhere, that will resolve this issue?
- The topic ‘Hide Editor Role from drop down in Add New User /User List’ is closed to new replies.