Hide admin toolbar in WordPress from all users except admins

    
//hide admin toolbar from all users except admins 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