=== MenuScope - WordPress Admin Menu Manager ===
Contributors: mohammadhossein
Tags: admin menu, hide menu, dashboard, role manager, menu visibility
Requires at least: 6.2
Requires PHP: 7.4
Stable tag: 1.2.2
License: GPLv2 or later

A lightweight, focused plugin for managing the visibility of WordPress admin menus and submenus globally or by user role.

== Features ==

* Automatically detects WordPress core, theme, and plugin admin menus
* Shows or hides top-level admin menus
* Shows or hides standard WordPress submenus
* Global settings for all users
* Role-specific settings with Inherit, Show, and Hide states
* Search by title, slug, or capability
* Warning before hiding sensitive administration menus
* Responsive, left-to-right English admin interface
* Emergency rule bypass through the MENUSCOPE_DISABLE_RULES constant

== Focused Build ==

MenuScope is intentionally limited to direct WordPress admin menu management. JSON import/export, manual slug rules, orphan rules, separate preview panels, and statistics are not included.

== Security Note ==

Hiding a menu does not block direct access. Use WordPress roles and capabilities to enforce actual permissions.

== Limitation ==

MenuScope manages top-level menus and submenus registered through the standard WordPress admin menu API. Third-level navigation items created only in the DOM cannot be managed.

== Installation ==

1. Upload the menuscope folder to wp-content/plugins, or install the ZIP from Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Open Menu Manager in the WordPress admin menu.

== Emergency Bypass ==

Add this line to wp-config.php:

define( 'MENUSCOPE_DISABLE_RULES', true );

This temporarily disables all menu-hiding rules.

== Changelog ==

= 1.2.2 =
* Fixed menu visibility rules not being persisted from admin-post.php
* Removed the save handler dependency on the runtime admin-menu snapshot
* Applied stored hide rules directly and at a later admin_menu priority

= 1.2.1 =
* Added a complete English left-to-right admin interface
* Repositioned directional UI elements for LTR layouts
* Updated search locale and all JavaScript messages for English sites

= 1.2.0 =
* Refocused the plugin exclusively on WordPress admin menu management
* Removed JSON import/export
* Removed manual and orphan rules
* Removed the separate preview and statistics panels
* Simplified the interface and JavaScript
* Added in-request rules caching
* Made Hide win in multi-role conflicts
* Improved slug validation and accessibility

= 1.1.0 =
* Added role overrides and additional tools

= 1.0.0 =
* Initial release
