Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › How to display admin bar for some user role › Reply To: How to display admin bar for some user role
08/08/2015 at 05:42
#1635
Vladimir
Keymaster
Good. Thanks for the information.
You may use one complex expression for all roles, like this one:
if (!(current_user_can('role1') || current_user_can('role2'))) {
return ....
}