Hide Admin Bar (By Role)
Hide the admin bar from specific user roles on the frontend while keeping it visible for others. Perfect for giving contributors a clean preview while letting editors keep quick admin access.
Use Cases
- Hide admin bar from Contributors and Authors who only need to preview content
- Remove admin bar from Customers viewing WooCommerce account pages
- Show admin bar only to Editors and Administrators who need quick access
How It Works
- Select which roles should NOT see the admin bar
- Save your settings
- Users with those roles won’t see the admin bar on the frontend
- Admin bar remains visible in the WordPress dashboard for all users
Settings
Select user roles to hide the admin bar from:
| Role | Description |
|---|---|
| Administrator | Full site access (usually keep visible) |
| Editor | Can manage all content |
| Author | Can publish own posts |
| Contributor | Can write but not publish |
| Subscriber | Basic profile access only |
| Custom Roles | Any roles added by plugins |
Click roles to add them to the hidden list. Click × to remove them.
If “Disable Admin Bar (Frontend)” is active, it hides the bar for ALL users. This role-based module has no effect while that module is enabled.
Recommended Configurations
Membership Sites
Hide from:
- Subscriber
- Customer (WooCommerce)
Keep visible for:
- Administrator
- Editor
- Author
Multi-Author Blogs
Hide from:
- Contributor
- Subscriber
Keep visible for:
- Administrator
- Editor
- Author
Client Sites
Hide from:
- Author
- Contributor
- Subscriber
Keep visible for:
- Administrator
- Editor
Important Notes
- Frontend only - The admin bar is hidden on your website’s public pages
- Backend unaffected - Users still see the admin bar in wp-admin
- Access preserved - Users can still access admin via direct URL
- Multiple roles - If a user has multiple roles, the bar is hidden if ANY of their roles is in the hidden list
Verification
After configuring your settings:
- Log in as a user with a hidden role (or use a role-switching plugin)
- Visit the frontend of your website
- Verify the admin bar is not visible
- Visit wp-admin to confirm the bar still appears there
- Log in as Administrator to verify you still see the bar on frontend
FAQ
Can I hide the admin bar in the admin area too?
No, this module only affects the frontend. The admin bar in wp-admin remains visible to help users navigate. Hiding it there would cause usability issues.What if a user has multiple roles?
If any of the user’s roles is in the hidden list, the admin bar is hidden. For example, if “Subscriber” is hidden and a user has both “Author” and “Subscriber” roles, the bar will be hidden.Does this work with custom roles?
Yes! Any role registered in WordPress appears in the selection list, including custom roles from plugins like WooCommerce (Customer, Shop Manager) or membership plugins.Why use this instead of ‘Disable Admin Bar Frontend’?
Use this if you want SOME roles to see the admin bar. Use “Disable Admin Bar Frontend” if you want to hide it for EVERYONE.Can users override this in their profile?
No. This module takes precedence over user profile settings. Users cannot enable the admin bar for themselves if their role is in the hidden list.Test with a role-switching plugin to verify your configuration works correctly for each role before deploying to production.
Comparison: This vs Disable Admin Bar Frontend
| Feature | Hide Admin Bar (By Role) | Disable Admin Bar Frontend |
|---|---|---|
| Hides for all users | ❌ | ✅ |
| Role-specific hiding | ✅ | ❌ |
| Configuration needed | Select roles | None |
| Best for | Role-based control | Complete removal |
WooCommerce Roles
If WooCommerce is installed, you’ll see additional roles:
- Customer - Registered buyers
- Shop Manager - Store management access
Common setup: Hide from Customer, keep visible for Shop Manager and above.
Get access to all 147 modules with a single license