我添加了一个用户角色来访问后端。即使我添加了 70 多个功能,Wp-admin 页面仍然显示“对不起,您无权访问此页面”。
add_role( 'employer', 'Employer',
array(
"switch_themes",
"edit_themes",
"activate_plugins",
"edit_plugins",
"edit_users",
"edit_files",
"manage_options",
"moderate_comments",
"manage_categories",
"manage_links",
"upload_files",
"import",
"unfiltered_html",
"edit_posts",
"edit_others_posts",
"edit_published_posts",
"publish_posts",
"edit_pages",
"read",
"level_10",
...
"manage_job_listing_terms",
"edit_job_listing_terms",
"delete_job_listing_terms",
"assign_job_listing_terms",
"administrator",
)
);
但这不起作用。
如何修复以访问仪表板?