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…
18/03/2018 at 02:34
#4687
Keymaster
Code, which you showed above, should work for the users with right role. Let me know if you still have difficulties with it after checking a role ID.
It’s possible to use ‘ure_bulk_grant_roles’ filter. Return false with it to hide “Grant Roles” button. This is a quote from the URE source code:
$bulk_grant_roles = apply_filters('ure_bulk_grant_roles', true);
if ($bulk_grant_roles) {
new URE_Grant_Roles();
}