=== SRKP Role Based Admin Menu ===
Contributors: keshav480,
Donate link: https://github.com/keshavsharma262001-ops
Tags: admin menu, role menu, hide admin menu, role access, menu editor
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Control and customize WordPress admin menu and submenu visibility dynamically for each user role with role-based access rules.

== Description ==

**SRKP Role Based Admin Menu** is a lightweight, powerful, and secure WordPress plugin designed to give site administrators complete control over what admin menu and submenu items each user role can see and access.

Whether you run a multi-author blog, membership portal, e-commerce store, or client site, cluttering the WordPress dashboard with unnecessary menu items for non-administrator users can lead to confusion and unintended site edits. **SRKP Role Based Admin Menu** solves this seamlessly!

### Key Features

* **Role-Specific Menu Control:** Customize menu visibility for any standard or custom WordPress user role (Administrator, Editor, Author, Contributor, Subscriber, WooCommerce Customer, Shop Manager, etc.).
* **Top-Level & Submenu Hiding:** Easily hide entire main menu items or individual submenus with intuitive toggle switches.
* **Instant Live Search:** Built-in fast search box to filter menu items instantly.
* **Bulk Show/Hide Controls:** One-click buttons to show or hide all menu items for a selected role.
* **Direct URL Access Blocking:** Prevent non-authorized users from directly navigating to hidden menu URLs via browser address bar.
* **Administrator Safety Guard:** Built-in protection option so site administrators never lock themselves out of the management settings.
* **Asynchronous AJAX Saving:** Save and reset menu visibility rules instantly without full page reloads.
* **Clean & Modern UI:** Modern card-based user interface with glassmorphism touches designed specifically for the WordPress dashboard.
* **WordPress.org Compliant:** Follows standard WordPress plugin architecture, sanitized queries, nonces, and translation-ready standard i18n text domains.

== Installation ==

1. Upload the `srkp-role-based-admin-menu` folder to the `/wp-content/plugins/` directory (or zip and install via **Plugins > Add New > Upload Plugin**).
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **SRKP Role Menu** in the WordPress admin menu bar to start configuring visibility rules for your user roles.

== Frequently Asked Questions ==

= Will this break my administrator dashboard? =
No. The plugin includes a built-in Administrator Safety Guard option (`Protect Administrators`) enabled by default. This ensures administrators always maintain access to the plugin settings.

= Does this support custom roles created by plugins like WooCommerce or User Role Editor? =
Yes! The plugin dynamically detects all registered roles on your WordPress site.

= Does it prevent users from accessing hidden menu URLs directly? =
Yes! When `Block Direct URL Access` is enabled in Global Settings, users attempting to access hidden admin pages directly will receive an Access Denied message.

== Screenshots ==

1. Admin Menu Visibility Manager dashboard displaying user role tabs and menu items.
2. Toggle switches for main menu and submenu visibility control.
3. Global safety settings and role management sidebar.

== Changelog ==

= 1.0.0 =
* Initial public release on WordPress.org.
* Feature: Role-based menu and submenu hiding logic.
* Feature: Search filter and bulk toggle actions.
* Feature: Direct URL access protection.
* Feature: Administrator safety guard.

== Upgrade Notice ==

= 1.0.0 =
Initial release. No upgrade required.
