Hide Admin Bar from Non-Admins

plugin banner

The WordPress admin bar will be hidden for all non-admin users.

Author:Stranger Studios (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:6.4.3
Plugin version:1.0.1
Added to WordPress repository:20-06-2013
Last updated:19-11-2023
Rating, %:88
Rated by:29
Plugin URI:https://www.paidmembershipspro.com/add-ons/hi...
Total downloads:204 765
Active installs:20 000+
plugin download
Click to start download

Install, activate, and you’re done.

This plugin hides the WordPress Toolbar (admin bar) for all visitors and users without the ‘administrator’ role. It’s a very simple plugin with no settings to configure.

  • Use this plugin for sites with only one admin who needs access to the dashboard and the admin bar.
  • This plugin is super lightweight, with just a few lines of code.
  • If you need to show the toolbar for other user roles, use the filter habfna_show_admin_bar_roles.

This plugin is a tweak of the code by Yoast to hide the admin bar for non-admins only.


FAQ
ChangeLog