fbpx

added functions

How to remove admin bar for logged in members (subscribers), add this to your themes functions.php file, admin bar still visible to admins

add_action(‘set_current_user’, ‘cc_hide_admin_bar’);
function cc_hide_admin_bar() {
if (!current_user_can(‘edit_posts’)) {
show_admin_bar(false);
}
}