admin管理员组文章数量:1325767
is there anyone can suggested or give me an idea. i created a customize WordPress plugin. it was called "Spark 3cx client"
First when i login using "admin" account. I can view or access the admin dashboard. Then what i wanted is to access the same page of admin to get the same GUI but only the specific plugin will appear on sidebar, using the customize role/user credential when logged in?
is there anyone can suggested or give me an idea. i created a customize WordPress plugin. it was called "Spark 3cx client"
First when i login using "admin" account. I can view or access the admin dashboard. Then what i wanted is to access the same page of admin to get the same GUI but only the specific plugin will appear on sidebar, using the customize role/user credential when logged in?
Share Improve this question edited Aug 13, 2020 at 6:16 Rhalp Darren Cabrera asked Mar 26, 2020 at 0:39 Rhalp Darren CabreraRhalp Darren Cabrera 1131 silver badge6 bronze badges1 Answer
Reset to default 1You can a custom admin page with add_menu_page
function.
The function has a argument $capability
which you can set the which users will be able to view and access the page
add_menu_page
https://developer.wordpress/reference/functions/add_menu_page/
Roles and capabilities
https://wordpress/support/article/roles-and-capabilities/
本文标签: How to make a customize role and view a specific plugins base on that role
版权声明:本文标题:How to make a customize role and view a specific plugins base on that role? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742190725a2430161.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论