Remove Ability for Other Users to View Administrator in User List?

(Moderator’s note: Original title was “Remove Admin from User Menu”) I have created a client administrator role which is essentially an Editor with ability to add/remove users. The article “Editor can create any new user except administrator” was excellent in helping keep my new client admin role from editing or creating a True admin user. … Read more

Possible to hide Custom Post Type UI/Menu from specific User Roles?

What I’m looking to do is completely hide the UI for a custom post type from specific user roles…Ive previously found many resources on how to disable access to using those CPTs but nothing that really allows you to completely hide the CPT UI all together based on what user is logged into the dashboard. … Read more

How do I create a custom role capability?

I wish to create a custom capability for accessing the interface of my plugin. Should the plugin manage adding this capability to all the administrator accounts on activation? If so: Does WordPress manage adding the capability to all administrators of sub blogs and super administrators in multisite installations, or does that function need to be … Read more

Is there way to rename user role name without plugin?

Is there anyway to rename a user role name via hook, instead of using plugin? Edit For example, administrator » owner 6 function change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles(); //You can list all currently available roles like this… //$roles = $wp_roles->get_names(); //print_r($roles); //You can replace “administrator” … Read more