=== Admin Toolbar Visibility Control ===
Contributors: yusufmudagal, ekamran
Tags: admin toolbar, admin bar, woocommerce, membership, lms
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control front-end admin toolbar visibility for customer-facing roles on eCommerce, membership, and LMS sites.

== Description ==

Admin Toolbar Visibility Control gives site owners centralized role-based control over the front-end WordPress admin toolbar.

WordPress already includes a per-user profile setting for the toolbar. This plugin is for stores, membership sites, LMS portals, customer dashboards, and client-facing websites where admins need a cleaner front-end experience for groups of users.

Use it to hide the front-end toolbar for roles such as customers, subscribers, members, students, buyers, or any selected custom role.

= Built for customer-facing WordPress sites =

The plugin is useful for:

* WooCommerce customer accounts
* SureCart customer portals
* Easy Digital Downloads buyers
* Paid Memberships Pro members
* MemberPress members
* LearnDash students
* LMS and customer dashboards
* Client-facing logged-in websites

= What stays protected =

* Administrators are never affected.
* wp-admin screens are never affected.
* Logged-out visitors are not affected.
* Roles you do not select are not affected.

= Supported detection in 2.0.0 =

The settings page detects supported active plugins and highlights relevant customer-facing roles when they exist:

* WooCommerce
* SureCart
* Easy Digital Downloads
* Paid Memberships Pro
* MemberPress
* LearnDash

If no supported plugin is active, you can still use the generic role-based control.

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install it from WordPress.org.
2. Activate the plugin through the Plugins screen in WordPress.
3. Go to Settings > Admin Toolbar.
4. Enable toolbar visibility control.
5. Select the roles that should not see the front-end toolbar.
6. Save your changes.

== Frequently Asked Questions ==

= Does this hide the toolbar in wp-admin? =

No. The plugin only controls the front-end toolbar. wp-admin is never affected.

= Can administrators lose access to the toolbar? =

No. Administrators are protected and will continue to see the toolbar.

= Does this replace WordPress's per-user toolbar profile option? =

No. WordPress still has the per-user setting. This plugin adds centralized role-based control for site owners.

= Does this use CSS to hide the toolbar? =

No. The plugin uses WordPress's `show_admin_bar` filter.

= Does this track users or send data externally? =

No. The plugin does not track users, send external requests, or include upsells.

== Screenshots ==

1. Settings page with global status, detected integrations, role selection, and summary.
2. Plugin Check validation completed with no errors found.
3. Plugins screen showing Admin Toolbar Visibility Control active.
4. Front-end view confirming administrators still keep the WordPress toolbar.

== Changelog ==

= 2.0.0 =
* Renamed plugin to Admin Toolbar Visibility Control.
* Kept the original main plugin file for backward compatibility.
* Added Settings > Admin Toolbar.
* Added role-based front-end toolbar visibility control.
* Added administrator and wp-admin protections.
* Added WooCommerce, SureCart, Easy Digital Downloads, Paid Memberships Pro, MemberPress, and LearnDash detection.
* Added user counts and role recommendations in the settings screen.

= 1.0 =
* Initial launch.

== Upgrade Notice ==

= 2.0.0 =
Major revival release. The plugin now uses settings-based role control instead of globally hiding the toolbar for everyone.
