//скрытие страниц от редактирования в админке start
function wph_hide_page_admin($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(2,8,9) ); // id страниц
return $query;
}
add_action('pre_get_posts' ,'wph_hide_page_admin');
//скрытие страниц от редактирования в админке end