php - How to give custom roles the capability to edit one Menu instead of every Menu

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

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745538040a4631996.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信