Hello, I followed this to get rid of the toolbar for a subscriber but it still shows. Here’s the code I used:
add_action(‘after_setup_theme’, ‘remove_admin_bar’);
function remove_admin_bar() {
if (!current_user_can(‘administrator’) && !is_admin()) {
show_admin_bar(false);
}
}
Also how do I get rid of the dashboard for all other users? Basically, I don’t want a logged in user(non-admin) to have any access of any kind to the backend.
Thanks!