I have added this code to the functions.php file
if ( ! current_user_can(‘manage_options’) ) {
add_filter( ‘show_admin_bar’, ‘__return_false’ );
}
to turn off the top admin tool bar for users that are not admins. But enfold does not seem to want to play ball as non admin users are still seeing the bar. Anyone know why?
Hey paceventures,
Can you try to manually replace the single quotes? so it looks like this:
if ( ! current_user_can( 'manage_options' ) ) {
add_filter('show_admin_bar', '__return_false');
}
Let us know if it helps.
Best regards,
Nikko