/* remove admin bar for all users except admin */
add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *