Thanks brasofilo!
add_action( \'pre_get_posts\', \'hide_pages_to_user_except_admins\' );
function hide_pages_to_user_except_admins( $query ) {
if( !is_admin() )
return $query;
global $pagenow;
$pages = array(\'201\',\'38\',\'99\'); //page ids
if(
\'edit.php\' == $pagenow
&& ( get_query_var(\'post_type\') && \'page\' == get_query_var(\'post_type\') )
)
$query->set( \'post__not_in\', $pages );
return $query;
}