=== Section-Specific Dashboard Lock ===
Contributors: NewWayPMSCo
Tags: dashboard lock, security, password, access control, admin protection
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lock specific sections and submenus of the WordPress admin dashboard with custom passwords for enhanced control and security.

== Description ==

The **Section-Specific Dashboard Lock** plugin enables you to lock access to specific sections and submenus within the WordPress admin dashboard. Ideal for website owners or developers who want to limit access to sensitive dashboard areas for certain users or even administrators.

**Key Features:**

- Lock main dashboard sections and submenus individually.
- Assign custom passwords to different areas.
- Reset locks on logout or re-login.
- Simple UI for enabling locks and setting passwords.
- Improves security without modifying user roles.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/` directory or install via the WordPress plugin installer.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Navigate to **Settings > Section Lock**.
4. Select which sections you want to lock, enable the locks, and set custom passwords.
5. Save the settings.

== Frequently Asked Questions ==

= Can I assign a different password for each section? =
Yes, each dashboard section can be protected with a unique password.

= Will the locks reset when a user logs out? =
Yes, all locks are automatically reset upon logout or login.

== Screenshots ==

1. **Lock Settings Panel:** Choose sections and assign passwords.
2. **Password Prompt Example:** Users must enter a password to access a locked area.
3. **Dashboard Integration:** Seamless integration into the admin dashboard.

== Changelog ==
= 1.1.0 - 2025-05-02 =

* Fixed issue where some plugin-specific sections were not locking due to dynamic menu slugs.
* Improved detection of query string-based pages and custom menu structures.
* Enhanced compatibility with plugins that add custom dashboard sections.

= 1.0.0 - 2025-05-02 =
* Initial release of the plugin with section-level locking and password protection.

== Upgrade Notice ==

= 1.1.0 = This update resolves issues with locking sections added by certain plugins due to dynamic menu structures. Update recommended for improved compatibility.

= 1.0.0 =
First release – adds support for locking individual dashboard sections and submenus with custom passwords.

== External Services ==

This plugin does not connect to or rely on any external services.

== Resources ==

This plugin uses WordPress core APIs and does not include any third-party libraries or dependencies.

