SRKP Role Based Admin Menu

外掛說明

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.

安裝方式

  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.

常見問題集

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.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈SRKP Role Based Admin Menu〉的開發相關工作。

參與者

將〈SRKP Role Based Admin Menu〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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.