Need to restrict admin bar access to working hours? Want to hide it on weekends or late evenings?
Hide Admin Bar Pro includes a flexible time-based visibility feature, allowing you to hide or show the admin bar during specific time ranges and days of the week.
This is especially useful for LMS platforms, internal teams, or scheduled workflows.
Use Cases #
- Hide the admin bar outside business hours (e.g., 9 AM – 6 PM)
- Only show admin bar on weekdays
- Temporarily disable admin bar access during off-hours for staff
- Maintain security and focus for students or restricted users
How to Configure Time-Based Visibility #
1. Open Plugin Settings #
Go to:
Settings → Hide Admin Bar
2. Locate the “Time-Based Visibility” Section #
This is part of the Pro-only feature set. It includes the following options:
- Start Time (24-hour format, e.g.,
09:00
) - End Time (e.g.,
18:00
) - Days of the Week (checkbox list: Monday to Sunday)
3. Set Your Desired Time Range #
- Enter your preferred start and end time
- Select the days of the week you want the rule to apply
For example:
- Start:
08:30
- End:
17:30
- Days: Monday, Tuesday, Wednesday, Thursday, Friday

4. Save Changes #
Click Save Changes to apply your time-based visibility rule.
How It Works (Logic Overview) #
- The plugin compares the current server time (in 24-hour format) against the defined start and end time.
- If the current day matches any of the selected days and the time is outside the defined range, the admin bar is hidden.
Tip: Make sure your server timezone aligns with your target region.
FAQ #
Does this feature consider user timezone?
No — the check is based on the server’s system time.
Can I hide only on weekends?
Yes. Simply select Saturday and Sunday in the day selection.
Can I use this along with role or URL rules?
Yes — all visibility rules can work together and are layered in logic.