Hide/Remove Toolbar on front end for logged in users?

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

Leave A Comment