【发布时间】:2015-12-02 11:23:40
【问题描述】:
我正在制作具有自定义用户角色的自定义插件:
add_role('lln_assessor', 'LLN Assessor', array(
'read' => true, // true allows this capability
'edit_posts' => true, // Allows user to edit their own posts
'edit_pages' => true, // Allows user to edit pages
'edit_others_posts' => true, // Allows user to edit others posts not just their own
'create_posts' => true, // Allows user to create new posts
'manage_categories' => true, // Allows user to manage post categories
'publish_posts' => true, // Allows the user to publish, otherwise posts stays in draft mode
));
这个角色将在我激活我的自定义插件时创建。
现在,在 wp-admin 或其登录时的仪表板中,如何创建自己的菜单和页面?
【问题讨论】:
标签: php wordpress user-roles