WordPress – Impedire editing pagine
Aprire blog/wp-content/themes/mytheme/functions.php
Aggiungere le righe:
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(10,2,14) ); // array page ids return $query; }