Title: Admin Menu Restrictor
Author: Ram Vaithia Nathan
Published: <strong>2024 年 11 月 25 日</strong>
Last modified: 2024 年 11 月 26 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/admin-menu-restrictor/assets/icon-256x256.jpg?rev=3197686)

# Admin Menu Restrictor

 作者：[Ram Vaithia Nathan](https://profiles.wordpress.org/ramvaithia/)

[下载](https://downloads.wordpress.org/plugin/admin-menu-restrictor.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/admin-menu-restrictor/#description)
 * [评价](https://cn.wordpress.org/plugins/admin-menu-restrictor/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/admin-menu-restrictor/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/admin-menu-restrictor/#developers)

 [支持](https://wordpress.org/support/plugin/admin-menu-restrictor/)

## 描述

Admin Menu Restrictor is a lightweight WordPress plugin designed to simplify and
secure the admin dashboard for non-administrator users. By default, the plugin restricts
access to all admin menu items except for the \”Posts\” menu, ensuring that non-
admin users can only access what they need. This helps streamline the interface,
minimize confusion, and prevent unauthorized access to sensitive areas of the dashboard.
The plugin is easy to use and works seamlessly with WordPress user roles and permissions.

## 安装

Plugin Installation Instructions:
 Download the Plugin:

Obtain the admin-menu-restrictor.zip file from your source or download it from the
official plugin website.
 Upload the Plugin to WordPress:

Log in to your WordPress admin dashboard.
 Navigate to Plugins > Add New. Click 
the Upload Plugin button at the top of the page. Select the admin-menu-restrictor.
zip file from your computer and click Install Now. Activate the Plugin:

Once the plugin is installed, click the Activate Plugin button to enable it on your
site.
 Verify Functionality:

Log in as a non-admin user to test the restricted admin menu.
 Ensure only the \”
Posts\” menu is visible while other menu items are hidden. Keep the Plugin Updated:

Regularly update the plugin under Plugins > Installed Plugins to ensure compatibility
with the latest WordPress versions and access to any improvements.

You’re all set! Admin Menu Restrictor is now active, simplifying the admin experience
for non-admin users. ​​

## 常见问题

### Frequently Asked Questions (FAQs) for Admin Menu Restrictor

 1. **What does Admin Menu Restrictor do?**
     Admin Menu Restrictor hides all admin 
    menu items except the \”Posts\” menu for non-administrator users, simplifying the
    dashboard and enhancing security.
 2. **Can I customize which menu items are visible to non-admin users?**
     Currently,
    the plugin only allows the \”Posts\” menu by default. However, you can modify the
    code to include additional menus by updating the `allowed_menu` array in the plugin
    file.
 3. **Does this plugin affect administrator accounts?**
     No, the plugin only restricts
    the admin menu for non-administrator users. Administrators retain full access to
    all menu items.
 4. **Is this plugin compatible with custom user roles?**
     Yes, the plugin works with
    custom user roles. It restricts access based on whether a user has the `administrator`
    capability.
 5. **Will this plugin conflict with other role management or admin customization plugins?**
    
    Admin Menu Restrictor is lightweight and should not conflict with most plugins.
    However, if another plugin modifies admin menu visibility, conflicts may arise.
    Testing is recommended in such cases.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Admin Menu Restrictor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Ram Vaithia Nathan ](https://profiles.wordpress.org/ramvaithia/)

[帮助将「Admin Menu Restrictor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/admin-menu-restrictor)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/admin-menu-restrictor/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/admin-menu-restrictor/)，或通过[RSS](https://plugins.trac.wordpress.org/log/admin-menu-restrictor/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/admin-menu-restrictor/)。

## 额外信息

 *  版本 **1.1**
 *  最后更新：**2 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/admin-menu-restrictor/)
 * 标签
 * [access-control](https://cn.wordpress.org/plugins/tags/access-control/)[admin menu](https://cn.wordpress.org/plugins/tags/admin-menu/)
   [restrict menu](https://cn.wordpress.org/plugins/tags/restrict-menu/)[user roles](https://cn.wordpress.org/plugins/tags/user-roles/)
   [wordpress admin](https://cn.wordpress.org/plugins/tags/wordpress-admin/)
 *  [高级视图](https://cn.wordpress.org/plugins/admin-menu-restrictor/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/admin-menu-restrictor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/admin-menu-restrictor/reviews/)

## 贡献者

 *   [ Ram Vaithia Nathan ](https://profiles.wordpress.org/ramvaithia/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/admin-menu-restrictor/)