Overview
Hide the admin bar for users with specific WordPress roles such as Subscriber, Contributor, Author, Editor, or any custom role. This feature is part of the Core Features category in Hide Admin Bar Pro.
Feature Details
| Category | Core Features |
| Type | Admin Bar Control |
| Plan | Free |
| Configurable Settings | Yes |
Prerequisites
- Hide Admin Bar Pro plugin must be installed and activated.
How to Configure
- Go to your WordPress admin dashboard.
- Navigate to Settings > Hide Admin Bar Settings.
- Find the User Roles-Based Hiding option on the main Settings tab.
- Configure the settings as needed and click Save.
- Changes take effect immediately — no page refresh needed for visitors.
How It Works
This feature displays a list of all registered WordPress user roles on your site, including custom roles from plugins like WooCommerce (Customer, Shop Manager). Select the roles that should not see the admin bar. When a user with a matching role visits the site, the admin bar is automatically hidden. Multiple roles can be selected simultaneously.
Benefits
- Granular control over which roles see the admin bar.
- Supports all WordPress roles including custom ones.
- Select multiple roles with individual checkboxes.
- Perfect for hiding the bar from Subscribers and Customers.
- Dynamically detects roles from all active plugins.
Frequently Asked Questions
How do I enable User Roles-Based Hiding?
Go to Settings > Hide Admin Bar Settings in your WordPress admin and find the option on the main Settings tab.
Can I use this with other visibility conditions?
Yes, all visibility conditions work together. The plugin evaluates conditions in order: global settings, role-based, capability-based, and then Pro conditions (time, URL, device, per-user). If any condition triggers hiding, the admin bar is hidden.
What happens if I accidentally hide the admin bar for administrators?
The plugin provides a secure reset URL on the settings page. You can also access the reset URL directly to restore all settings to their defaults without needing the admin bar.