Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › Hide "Other Roles" control › Reply To: Hide "Other Roles" control
08/01/2021 at 04:22
#7245
Vladimir
Keymaster
While code version above work for the user with ‘user-manager’ role only, this version works for all users including one with ‘administrator’ role:
add_filter('ure_show_additional_capabilities_section', 'ure_show_additional_capabilities_section');
function ure_show_additional_capabilities_section( $show ) {
/* Remove comment if do not wish to apply this for administrators also
$lib = URE_Lib::get_instance();
if ($lib->is_super_admin()) {
return $show;
}
*/
return false;
}