Hi.
How to make editors to see and edit only selected pages ?
Here is how i add new role:
add_role( 'webmaster', 'уебмастър' );
/*Add cap*/
function add_theme_caps() {
// gets the author role
$role = get_role( 'webmaster' );
// This only works, because it accesses the class instance.
// would allow the author to edit others' posts for current theme only
$role->add_cap( 'edit_others_posts' );
$role->add_cap( 'moderate_comments' );
$role->add_cap( 'upload_files' );
$role->add_cap( 'edit_posts' );
$role->add_cap( 'edit_published_posts' );
$role->add_cap( 'publish_posts' );
$role->add_cap( 'edit_comment' );
}
add_action( 'admin_init', 'add_theme_caps');
Now how to make them see and edit only specific pages?
Regards.