I found out this code and works ok for hide pages in admin page listing, but I need someway to do this to thousand pages:
add_action( 'pre_get_posts' ,'hide_pages_87ff65f5f' );
function hide_pages_87ff65f5f( $query ) {
if( !is_admin() )
return $query;
global $currentpage;
$pages = array('2389','2605','2640','2970','2626');
if( 'edit.php' == $currentpage && ( get_query_var('post_type') && 'page' == get_query_var('post_type') ) )
$query->set( 'post__not_in', $pages );
return $query;
}
Because I migrated a large static site I want to hide several pages and posts types from this specific month and year, I tried query and get_posts but something is not working, or maybe is not possible here :S
Infact I need to hide the content on every context in admin panel such parent option box, but this is quite enough for now.
Thanks a lot for any help!