=== Admin Menu Cleaner ===
Contributors: eratalay
Donate link: https://profiles.wordpress.org/eratalay/
Tags: admin menu, menu cleaner, hide menu, admin interface, ui optimization
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A simple, lightweight plugin to hide unnecessary items from the WordPress admin menu for a cleaner interface.

== Description ==

Admin Menu Cleaner is a straightforward and secure tool designed to help administrators declutter their WordPress backend. Often, themes and plugins add numerous pages to the left-hand sidebar, making it difficult to navigate.

With this plugin, you get a clean settings page under Settings > Menu Cleaner. All available admin menus are listed there. Simply uncheck the ones you don't need to see, and they will be visually hidden from the sidebar.

Features

Simple Interface: No confusing settings. Just a list of checkboxes with their original menu icons.

Opt-in Visibility: By default, all menus are checked (visible). Uncheck to hide.

Lockout Prevention: Automatically prevents you from hiding the main "Settings" menu so you never lock yourself out of the plugin.

Lightweight: Built with pure WordPress APIs, no external libraries or bloated CSS/JS files.

Highly Secure: Adheres strictly to WordPress.org security guidelines (Nonces, Sanitization, Late-escaping).

Note: This plugin hides the menus visually to simplify the workspace. It does not alter user roles or block access via direct URL typing.

== Installation ==

Upload the admin-menu-cleaner folder to the /wp-content/plugins/ directory, or install it directly through the WordPress plugins screen.

Activate the plugin through the 'Plugins' screen in WordPress.

Navigate to Settings -> Menu Cleaner to configure which menus you want to keep visible.

== Frequently Asked Questions ==

= Does this delete the plugins or their data? =
No. It only hides the link from the left-hand sidebar. Your plugins and themes will continue to function normally.

= Can I hide the Settings menu itself? =
No, as a safety precaution, the main "Settings" menu is locked and cannot be hidden. This ensures you can always access the Menu Cleaner settings to restore hidden items.

= Does this restrict access for other users? =
This plugin applies the visual menu changes globally based on the slug. However, it does not replace a capability/role manager. If a user types the direct URL of a hidden page, they can still access it if their user role permits.

== Screenshots ==

The settings screen showing all active menus as checkboxes.

== Changelog ==

= 1.0.0 =

Initial open-source release.

Built securely with OOP structure and WordPress standards.