🔥 Limited-time offer: 50% OFF with code BIGSALE50 — Claim Discount BIGSALE50
59 d
:
12 h
:
23 m
:
07 s
Claim Deal
DOCUMENTATION

User Roles-Based Hiding

Hide the admin bar for users with specific WordPress roles such as Subscriber, Contributor, Author, Editor, or any custom role.

2 min read    Last updated Feb 26, 2026

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

  1. Go to your WordPress admin dashboard.
  2. Navigate to Settings > Hide Admin Bar Settings.
  3. Find the User Roles-Based Hiding option on the main Settings tab.
  4. Configure the settings as needed and click Save.
  5. 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.

Need More Help?

Our support team can help with setup, troubleshooting, and best practices.

Contact Support