admin管理员组文章数量:1431420
I would like to have a custom user role that can edit the Menu items under the Appearance tab. But I don't want my custom role to have the ability to edit every menu on my WordPress site. I only want this role to be able to edit a single menu. For example, in the screenshot below I want my user role to only be able to see and edit Menu A. I don't want my role to see and edit the Header, Footer, or any other menus. I have searched other Stackoverflow questions like the one in this link: allow editors to edit menus?
But that solution allows the role to access every menu on my Wordpress site. In fact, that solution allows the role to access other Appearance functionalities like the ability to customize the theme itself, which I don't want.
I would prefer to solve this problem by writing my own PHP code instead of using an external plugin, although any help would be much appreciated.
本文标签: phpHow to give custom roles the capability to edit one Menu instead of every Menu
版权声明:本文标题:php - How to give custom roles the capability to edit one Menu instead of every Menu 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745538039a2662362.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论