So I've been tinkering with the admin roles and I can't seem to be able to revoke create page rights for the admin. I can only find 'Edit page'.
If I remove Edit page, the entire pages tab goes away(probably because of not enough rights)..
Is there a way to disable creating/deleting pages and keep the pages tab?
I have this so far.
$role = get_role('administrator');
$role->remove_cap('delete_pages');
$role->remove_cap('delete_others_pages');
$role->remove_cap('delete_published_pages');
$role->remove_cap('publish_pages');