Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › How can i hide Other Roles dropdown menu from user editor, Grant Role button… › Reply To: How can i hide Other Roles dropdown menu from user editor, Grant Role button…
Hello!
I have the followng code that works fine for hiding the “Other Roles” dropdown field fro the User’s Editor screen. This snippet, doesn’t affect the “Grant Roles” Button.
//Hide “other roles” from user editor//
add_filter(‘ure_show_additional_capabilities_section’, ‘ure_show_additional_capabilities_section’);
add_filter(‘ure_bulk_grant_roles’, ‘ure_show_additional_capabilities_section’);
function ure_show_additional_capabilities_section($show) {
if (current_user_can(‘comapny_editor’)) {
$show = false;
}
return $show;
}
I tried the new snippet you gave me, with “False” but the button is till there….
Pls see the screenshot
http://nimb.ws/oKGmaE