I've been trying to find a way to limit the user from seeing some pages in the "pages" menu in the admin panel.
I looked in the edit.php file and noticed:
} elseif ( 'page' == $post_type ) {
However, i am unsure of what i need to edit in order to show some pages and hide others depending on the role.
The Admin will be able to see all posts.
The SubAdmin will only be able to see some pages.
How can i edit the edit.php file (or some other php file) in order to do this?