help

How to disable ADMIN bar for every user except admin

By April 9, 2016No Comments

In functions file, place the following:

add_action(‘after_setup_theme’, ‘remove_admin_bar’);

function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}

All rights reserved CNFdesigns.