Feature request – Hide some Pages for some Roles
-
Pages are something that dont change for years. Problem is some change, some not. Some are build by different shortcodes for design/layut and content, and is not good to give other than Admins access to them.
Can you make a new option in Adminimize to hide (specific, not all) Pages (not Posts) from some roles ?
If it can help you this snippet hide them from view (they are still editable if accessed, could not find any way to disable them totally from Editors, etc)
add_action( 'pre_get_posts' ,'exclude_this_page' ); function exclude_this_page( $query ) { if( !is_admin() ) return $query; global $pagenow; if( 'edit.php' == $pagenow && ( get_query_var('post_type') && 'page' == get_query_var('post_type') ) ) $query->set( 'post__not_in', array(23,28,30) ); // page id return $query; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Feature request – Hide some Pages for some Roles’ is closed to new replies.