How can I prevent my custom user role to not be able to add new pages.
I have this array of capabilities for my user role:
$args = array(
'delete_others_pages' => false,
'delete_others_posts' => false,
'delete_pages' => false,
'delete_posts' => true,
'delete_private_pages' => false,
'delete_private_posts' => true,
'delete_published_pages' => false,
'delete_published_posts' => 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,
'manage_categories' => true,
'manage_links' => true,
'moderate_comments' => true,
'publish_pages' => false,
'publish_posts' => true,
'create_pages' => false, //THIS SETTING DOES NOT WORK / EXISTS
'read' => true,
'read_private_pages' => true,
'read_private_posts' => true,
'upload_files' => true,
}
With these settings my user role can still "Add new page" but the page will then be submitted for "review" by an administrator.
My user should be able to "edit existing pages" but may not "add new" or "delete" any pages.
For "posts" the user should be able to "add new", "update" and "delete" any posts (full control). And the same for "Custom Post Types".
Best Regards
Shane Madsen