| 开发者 | sdnet |
|---|---|
| 更新时间 | 2026年7月28日 01:38 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
?saamc_safe=1) guarantees you can never lock yourself out.
Key features:
?saamc_safe=1 instantly restores every menu.saa-admin-menu-controls folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.No. Administrators (users with the manage_options capability) are always protected and never have effects applied, unless they explicitly enable Preview Mode from the settings page.
Add ?saamc_safe=1 to any admin URL (for example /wp-admin/index.php?saamc_safe=1). This instantly disables all effects for administrators and clears Preview Mode.
No. Hiding a menu item only removes it from the admin menu for the selected roles. It does not change WordPress capabilities. Use a dedicated role/capability plugin if you need to restrict access itself.
Yes. The plugin detects every top-level admin menu currently registered — including menus added by plugins such as Elementor and WooCommerce — and lists them automatically as tickable choices, so you no longer have to type them by hand.
If a menu is not listed (for example one that only appears in certain contexts), you can still add it via the "Custom menu slugs" textarea, one slug per line. Use the menu slug the plugin registered, not the URL: for example elementor, not admin.php?page=elementor. The plugin also accepts the full admin.php?page=... form and normalises it for you. Core custom post type menus use their full slug, for example edit.php?post_type=product.
Each role's Admin Menu section has a mode switch. In "Hide selected" mode (the default) the items you tick are removed and everything else stays. In "Show only selected" mode the plugin keeps only the items you tick and removes everything else — ideal when a client should see just a couple of menus. The Dashboard is always kept in "Show only" mode so the client still has a home screen.
No. It stores a single settings option and a per-administrator preview flag in user meta. Both are removed when you uninstall the plugin.
Yes. All user-facing strings use the saa-admin-menu-controls text domain and a POT template is included in the languages folder.
?saamc_safe=1) for lockout protection.