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 04:12
#1630
Vladimir
Keymaster
It seems I found a problem with code. Replace ‘no’ to ‘false’. It should help.
add_filter('woocommerce_disable_admin_bar', '_wc_disable_admin_bar', 10, 1);
function _wc_disable_admin_bar($prevent_admin_access) {
return false;
}