Hide Admin Bar Based on User Roles – Disable the WordPress Toolbar by Role, Device or Page
Hide Admin Bar Based on User Roles – Disable the WordPress Toolbar by Role, Device or Page
Description
The complete WordPress admin bar control plugin
Hide Admin Bar Based On User Roles gives you complete control over who sees the WordPress admin bar (toolbar) on the frontend of your site.
Remove the admin bar for subscribers, hide the toolbar for WooCommerce customers, disable it for all users, or build precise visibility rules by role, capability, device, page, or time — all without writing a single line of code.
The plugin is lightweight, developer-friendly, and works immediately upon activation — no configuration required to get started. Trusted on 20,000+ active WordPress sites.
Simple but great plugin. 🙂
– wptoolsdevWorks flawlessly! 🙂
– thebrazeneye
Why hide the WordPress admin bar?
The black toolbar at the top of your site is useful for admins — but for everyone else it exposes backend links, breaks your design, and confuses non-technical users. Hiding it is essential for:
- Membership sites – give members a clean, frontend-only experience with no WordPress branding
- WooCommerce stores – stop showing the toolbar to customers after they log in
- LMS & course platforms – keep students focused on your content, not the WordPress UI
- Client websites – hand over polished sites where editors see only what they need
- Communities & directories – hide backend access hints from registered users
- Anyone who wants a cleaner frontend – remove the admin bar without touching functions.php
🚀 Key Features (Free)
- Hide for All Users: Completely remove the admin bar from the frontend for everyone.
- Hide for Guests: Ensure non-logged-in visitors never see the toolbar.
- Role-Based Hiding: Select specific roles (e.g., Subscriber, Customer, Editor) to hide the bar for.
- Capability-Based Hiding: Hide the bar based on WordPress capabilities (e.g., hide for anyone who cannot
manage_options). - Lightweight & Fast: Zero bloat — no external requests, no database overhead on the frontend.
🏆 Premium Features (Pro)
Unlock advanced visibility logic with the Pro version:
- Page-Based Targeting: Show or hide the admin bar only on specific URLs, post types, or page templates.
- Device Detection: Hide the toolbar on Mobile or Tablet to save screen space, while keeping it on Desktop.
- Per-User Overrides: Manually force the admin bar to show or hide for individual user accounts.
- Time-Based Visibility: Automatically hide the bar during specific hours of the day.
- Smart Redirects: Redirect users to the homepage or a custom URL when they try to access the backend.
- Inactivity Auto-Hide: Automatically slide the toolbar away after a configurable period of inactivity.
- Import / Export Settings: Back up and migrate your configuration across sites in one click.
Works with your setup
Hide Admin Bar Based on User Roles works with any theme and any plugin that registers user roles — including WooCommerce (Customer role), membership plugins, LMS plugins, and custom roles. Fully compatible with Elementor, Divi, Beaver Builder, Bricks, and WordPress Multisite.
You can check our other plugins:
Installation
- Upload the plugin files to the
/wp-content/plugins/hide-admin-bar-based-on-user-rolesdirectory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‘Plugins’ screen in WordPress.
- Use the Settings Hide Admin Bar screen to configure your visibility rules.
OR
Install it via Plugins Add New Search: Hide Admin Bar Based on User Roles
Faq
Go to Settings Hide Admin Bar and enable the “hide for all users” option. The toolbar disappears from the frontend for every logged-in user instantly.
Select the Subscriber (or Customer) role on the settings page. The admin bar stays visible for administrators and any other roles you leave unchecked — perfect for WooCommerce stores and membership sites.
Yes — that’s exactly what this plugin does. Instead of adding show_admin_bar filter snippets to functions.php (which are lost when you switch themes), you get a simple settings screen with role, capability, and user-based rules.
By default, no. You have full control. You can choose to hide it for Administrators if you wish, but most users keep it visible for admins and hidden for everyone else.
Yes. Go to Settings Hide Admin Bar and check the “Customer” user role. It works with any custom role registered by WooCommerce or other plugins.
The plugin controls the toolbar on the frontend of your site. Inside wp-admin, WordPress always shows the toolbar as part of the admin interface. With the Pro version you can also redirect users away from the backend entirely.
No. The visibility logic runs at the show_admin_bar filter level — it is one of the earliest and lightest hooks in WordPress. There is no frontend CSS or JavaScript loaded.
Yes. It follows standard WordPress coding practices and works with all major themes and page builders including Elementor, Divi, Beaver Builder, and Bricks.
Yes — with the Pro version you can target specific URLs, post types, or page templates for granular page-level control.
Yes. The plugin supports WordPress Multisite networks.
Reviews
BEST OF THE BEST
By davidraudales on December 20, 2025
I LOVE IT
Hides the admin bar even when I'm an administrator
By Norman Cates (normancates) on December 13, 2023
Hides the admin bar for Administrator role, even though I've told it to allow Administrators to see the bar.
hide admin bar even though I’m admin
By syyymonsyy on December 12, 2023
hide admin bar even though I’m admin
It's working very well after update
By mich08 on March 9, 2023
It's working very well after recent update.
After an update, the admin bar appeared for all users.
By upwithit on July 6, 2022
AWESOME
By ceef454 on April 5, 2022
Hidden but not hidden
By leolivenl on January 18, 2022
Excellent plugin
By menzah on December 6, 2021
Works as Described
By ellice909 on September 21, 2021
thank you
By wemnael on April 25, 2021
Changelog
7.2.5
- Fixed: Minor compatibility issues with the latest WordPress version.
7.2.4
- Fixed: Minor compatibility issues with the latest WordPress version.
7.2.3
- Fixed: Minor compatibility issues with the latest WordPress version.
7.2.1
- Fixed: Minor compatibility issues with the latest WordPress version.
7.2.0
- Improved: Admin settings UI refresh for better usability.
- Fixed: Minor compatibility issues with the latest WordPress version.
7.1.0
- Improved: Admin settings UI refresh for better usability.
- Improved: Code quality and inline documentation.
- Fixed: Minor compatibility issues with the latest WordPress version.
7.0.3 – 31-01-2026
- Fixed: Minor bugs and stability improvements.
7.0.1 – 25-11-2025
- Fixed: Minor bugs and stability improvements.
6.0.3 – 03-07-2025
Fixed some bugs and improvements.
6.0.2 – 03-06-2025
Fixed some bugs and improvements.
6.0.0 – 20-04-2025
- Major release: Pro version launched (optional, upgrade via Freemius)
- Added: Auto Hide Admin Bar (Pro)
- Added: Page-based, device-based, and time-based visibility modules (Pro)
- Added: Per-user override, redirect on hide, import/export
- Improved: Settings layout and compatibility with other plugins
- Refactored: Modular architecture for clean feature handling
5.2.0 – 02-04-2025
- I18N Issues Fixes
- Compatibility tested & Tested with the latest WordPress version.
5.0.0 – 16-02-2025
- Admin ui updated.
- Compatibility tested & Tested with the latest WordPress version.
4.1.0 – 28-12-2024
Compatibility tested & Tested with the latest WordPress version.
4.0.0 – 09-11-2024
Compatibility tested & Tested with the latest WordPress version.
3.9.1 – 30-10-2024
Compatibility tested & Tested with the latest WordPress version.
3.9.0 – 25-09-2024
Compatibility tested & Tested with the latest WordPress version.
3.8.3 – 13-08-2024
Compatibility tested & Tested with the latest WordPress version.
3.8.2 – 01-07-2024
Compatibility tested & Tested with the latest WordPress version.
3.8.1 – 24-05-2024
Compatibility tested & Tested with the latest WordPress version.
3.8.0 – 15-05-2024
Compatibility tested & Tested with the latest WordPress version & UltimaKit For WP support added.
3.7.2 – 03-03-2024
Compatibility tested & Tested with the latest WordPress version.
3.7.1 – 06-02-2024
Compatibility tested & Tested with the latest WordPress version.
3.7.0 – 01-01-2024
Compatibility tested & Tested with the latest WordPress version.
3.6.2 – 09-11-2023
Compatibility tested & Tested with the latest WordPress version.
3.6.1 – 01-10-2023
Compatibility tested & Tested with the latest WordPress version.
3.6.0 – 02-08-2023
Compatibility tested & Tested with the latest WordPress version.
3.5.6
Compatibility tested & Tested with the latest WordPress version.
3.5.5
Compatibility tested & Tested with the latest WordPress version.
3.5.4
Compatibility tested & Tested with the latest WordPress version.
3.5.3
Compatibility tested & Tested with the latest WordPress version.
3.5.2
Security Fixes and Improvements.
3.5.1
Security Fixes and Improvements.
3.5.0
Security Fixes and Improvements.
3.4.1
Security Fixes and Improvements.
3.4.0
Security Fixes and Improvements and multisite support reverted.
3.3.0
Security Fixes and Improvements and multisite support added.
3.2.0
Security Fixes and Improvements.
3.1.0
Security Fixes and Improvements.
3.0.0
Security Fixes and Improvements.
2.9.0
Improvements & Fixes
2.8.0
Improvements & Fixes
2.7.0
Improvements & Fixes
2.6.0
Improvements
2.5.0
Improvements
2.4.0
Improvements
2.3.0
Improvements
2.2.0
Improvements
2.1.0
Improvements
2.0.0
Bug Fixes & Improvements
1.8.0
Bug Fixes & Improvements
1.7.0
Bug Fixes & Improvements
1.6.1
Bug Fixes & Improvements
1.6
Bug Fixes & Improvements
1.5
Bug Fixes & Improvements
1.4
Code Improvements, GUI Updated, New Feature Integration.
1.3
Code Improvements, GUI Updated.
1.2
Fixed some bugs and improvements and new feature added -> Hide admin bar for all guest users.
1.1
Fixed some bugs and improvements.
1.0
First release
