I want to know if there's a way to hide pages that do not belong to the logged in user in the dashboard? I've been looking at capabilities, but as far as I can see I can only restrict interaction with pages not owned by the logged in user.
Thanks
I want to know if there's a way to hide pages that do not belong to the logged in user in the dashboard? I've been looking at capabilities, but as far as I can see I can only restrict interaction with pages not owned by the logged in user.
Thanks
You have to create a new user role and define it's capabilities for the user roles.
add_role( 'photo_uploader', 'Photo Uploader', array( 'view_galleries' ) );
// remove "view_galleries" to this role object
$role->remove_cap( 'photo_uploader', 'view_galleries' );
Check more about custom user roles and capabilities here.
If you are looking for easier and faster solution you can do that using the following plugin