简体   繁体   English

隐藏管理菜单

[英]Hide admin menu

I am using the latest wordpress 3.2.1. 我正在使用最新的wordpress 3.2.1。 I would like to let create a new admin to do ONLY this: 我只想创建一个新的管理员来做到这一点:
1) Manage order to change the order status to (eg approve..reject). 1)管理订单以将订单状态更改为(例如,批准..拒绝)。
2) Able to view user only without the ability to Edit or Delete. 2)只能查看用户,而不能进行编辑或删除。
3) Accept email notification on new registered user and new order. 3)接受有关新注册用户和新订单的电子邮件通知。

This would meant that when this new admin login, he is able to view only these 3 menu and All other menu will be invisible. 这意味着当这个新的管理员登录时,他将只能查看这3个菜单,而所有其他菜单将不可见。 Could anyone advice? 有人可以建议吗? I have tried many like the Adminimize, Admin Menu Editor, hide-admin-panels.. But all don works as it is a role based instead of user based. 我已经尝试过许多类似Adminimize,Admin菜单编辑器,hide-admin-panels的方法。但是所有这些都起作用,因为它是基于角色而不是基于用户的。

There is a great Plugin called Members: Just create a new role, give it the capabilities it should have and I suppose WordPress will hide all the areas in the backend where the user does not have an capabilities to do any actions: 有一个很棒的插件,名为Members:只需创建一个新角色,为其赋予它应有的功能,我想WordPress将隐藏后端中用户无法执行任何操作的所有区域:

http://wordpress.org/extend/plugins/members/ http://wordpress.org/extend/plugins/members/

This article also might be helpful - it is about using and extending the WordPress default role system: 本文也可能会有所帮助-它与使用和扩展WordPress默认角色系统有关:

http://www.blackbam.at/blackbams-blog/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/ http://www.blackbam.at/blackbams-blog/2011/07/02/digging-into-roles-and-capabilities-in-wordpress-extension-and-global-usage/

Hope this helps! 希望这可以帮助!

For your needs, I believe that the plugin Hide Admin Menu can solve the problem. 为了您的需要,我相信插件Hide Admin Menu可以解决此问题。 It allows us to hide admin menu items based on user role simply by checking checkboxes corresponding those roles. 它允许我们仅通过选中与那些角色相对应的复选框,即可根据用户角色隐藏管理菜单项。

The plugin works for admin role as well, and also works with admin bar menu. 该插件还可以用作管理员角色,并且还可以与管理栏菜单一起使用。

Give it a try. 试试看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM