I have created a custom user role but something strange happens.
This is the role:
add_role('custom-role', 'Custom Role', array(
'activate_plugins' => false,
'delete_others_pages' => true,
'delete_others_posts' => false,
'delete_pages' => true,
'delete_posts' => false,
'delete_private_pages' => true,
'delete_private_posts' => false,
'delete_published_pages' => true,
'delete_published_posts' => false,
'edit_dashboard' => false,
'edit_others_pages' => false,
'edit_others_posts' => false,
'edit_pages' => true,
'edit_posts' => false,
'edit_private_pages' => true,
'edit_private_posts' => false,
'edit_published_pages' => true,
'edit_published_posts' => false,
'edit_theme_options' => false,
'export' => false,
'import' => false,
'list_users' => true,
'manage_categories' => false,
'manage_links' => false,
'manage_options' => false,
'moderate_comments' => false,
'promote_users' => false,
'publish_pages' => true,
'publish_posts' => false,
'read_private_pages' => false,
'read_private_posts' => false,
'read' => false,
'remove_users' => true,
'switch_themes' => false,
'upload_files' => true,
'update_core' => false,
'update_plugins' => false,
'update_themes' => false,
'install_plugins' => false,
'install_themes' => false,
'delete_themes' => false,
'delete_plugins' => false,
'edit_plugins' => false,
'edit_theme' => false,
'edit_files' => false,
'edit_users' => true,
'create_users' => true,
'delete_users' => true,
'unfiltered_html' => false
));
This is nothing fancy. But the problem is that at first I set all the values to false
.
If I log a user in with the chosen role it shows Dashboard
, posts
, reactions
, profile
and extra
.
The problem is that if I change a value from false
to true
nothing changes.
I have loged out and in, removed my cookies and deleted my cache.
I don't know how to fix this.
false
totrue
?functions.php
and it doesn't matter what I change the only thing the users sees is:Dashboard
,posts
,reactions
,profile
andextra
.