我通过以下方式添加了自定义角色:
add_role(
\'tabellenadmin\',
__( \'Tabellenadministrator\' ),
array(
\'activate_plugins\' => true,
\'delete_others_pages\' => true,
\'delete_others_posts\' => true,
\'delete_pages\' => true,
\'delete_plugins\' => true,
\'delete_posts\' => true,
\'delete_private_pages\' => true,
\'delete_private_posts\' => true,
\'delete_published_pages\' => true,
\'delete_published_posts\' => true,
\'edit_dashboard\' => true,
\'edit_files\' => true,
\'edit_others_pages\' => true,
\'edit_others_posts\' => true,
\'edit_pages\' => true,
\'edit_posts\' => true,
\'edit_private_pages\' => true,
\'edit_private_posts\' => true,
\'edit_published_pages\' => true,
\'edit_published_posts\' => true,
\'edit_theme_options\' => true,
\'export\' => true,
\'import\' => true,
\'list_users\' => true,
\'manage_categories\' => true,
\'manage_links\' => true,
\'manage_options\' => true,
\'moderate_comments\' => true,
\'promote_users\' => true,
\'publish_pages\' => true,
\'publish_posts\' => true,
\'read_private_pages\' => true,
\'read_private_posts\' => true,
\'read\' => true,
\'remove_users\' => true,
\'switch_themes\' => true,
\'upload_files\' => true,
\'update_core\' => true,
\'update_plugins\' => true,
\'update_themes\' => true,
\'install_plugins\' => true,
\'install_themes\' => true,
\'delete_themes\' => true,
\'edit_plugins\' => true,
\'edit_themes\' => true,
\'edit_users\' => true,
\'create_users\' => true,
\'delete_users\' => true,
\'unfiltered_html\' => true
)
);
据我所知,这个用户应该看到每个菜单页。但只显示仪表板和用户。我试图擦除函数中的所有内容。php,除上述内容外。没有变化。我错过什么了吗?