add_filter( ‘parse_query’, ‘exclude_pages_from_admin’ );
function exclude_pages_from_admin($query) {
global $pagenow,$post_type;
if (is_admin() && $pagenow==’edit.php’ && $post_type ==’page’) {
$query->query_vars[‘post__not_in’] = array(‘156′,’157′,’167′,’159′,’74’,’158′,’160′,’161′,’169′,’71’);
}
}

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...