Remove WordPress Admin Bar for All Users Except AdministratorsWPEDUJanuary 4, 2024 if (!current_user_can('administrator')) { show_admin_bar(false); }