我尝试为 SEO 专家添加一个新角色。这是我在functions.php中的数组:
add_role('seosem', __(
'seosem'),
array(
'read' => true,
'create_posts' => true,
'edit_posts' => true,
'edit_others_posts' => true,
'publish_posts' => true,
'edit_others_pages' => true,
'edit_published_pages' => true,
'edit_published_posts' => true,
'publish_pages' =>true,
'delete_pages' =>true,
'delete_others_pages' =>true,
'delete_published_pages' =>true,
)
);
但是当我尝试登录此帐户时。我无法编辑管理员创建的帖子和页面,也无法创建新页面。该用户没有权限。如何解决?如您所见,一切都设置为 TRUE。