Hide Admin Bar from Non-Admins
Hides the WordPress toolbar (admin bar) for all non-admin users. Simple plugin with no settings to configure.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 408 days ago • 30 reviews
Is Hide Admin Bar from Non-Admins abandoned?
Possibly abandoned (last update 408 days ago).
Compatibility
Languages
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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.
Installation
Install Hide Admin Bar from Non-Admins from within WordPress
- Visit the plugins page within your dashboard and select “Add New”
- Search for “Hide Admin Bar from Non-Admins”
- Locate this plugin and click “Install”
- Activate “Hide Admin Bar from Non-Admins” through the “Plugins” menu in WordPress
- That’s it. There are no settings.
Install Hide Admin Bar from Non-Admins Manually
- Upload the
hide-admin-bar-from-non-adminsfolder to the/wp-content/plugins/directory - Activate “Hide Admin Bar from Non-Admins” through the “Plugins” menu in WordPress
- That’s it. There are no settings.
Frequently Asked Questions
If you need to show the toolbar for other user roles, use the filter habfna_show_admin_bar_roles. Here is a code recipe that demonstrates how to use this filter.
This plugin does not handle any user redirection. It’s only for hiding the admin bar. If you are building a site that needs more robust user management, consider our WordPress membership plugin, Paid Memberships Pro.
Paid Memberships Pro allows anyone to build a membership site—for free. Restrict content, accept payment, and manage subscriptions right from your WordPress admin.
Please post it in the issues section of GitHub and we’ll fix it as soon as we can. Thanks for helping. https://github.com/strangerstudios/hide-admin-bar-from-non-admins/issues
Please visit our premium support site at https://www.paidmembershipspro.com for more documentation and our support forums.
Review feed
Screenshots
Changelog
1.0.2 – 2024-11-13
- ENHANCEMENT: Update tested up to WordPress 6.7.
- ENHANCEMENT: Preparing plugin to be put up for adoption.
1.0.1 – 2022-04-11
- ENHANCEMENT: Added
habfna_show_admin_bar_rolesfilter to show the admin toolbar for additional roles. - BUG FIX: Fixed code to hide the admin bar from non-admins when viewing the Edit Profile WordPress admin page.
1.0
- Initial version of the plugin.