I have written a plugin. Their admin can access it and do the plugin configuration. Now I need to give this permission for the particular users I created to access and configure the plugin.
Problem is I don't need them to access other configurations in back-end such as page creation, user creation, plugin installation and etc.
I have added the plugin to the setting menu in wordpress backend.
So how to set permission from plugin code to allow configuration from back-end only for my plugin?
最好将您的插件菜单放置在具有add_management_page
工具”下,并将capability
参数设置为与所需用户角色匹配的参数。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.