This refinement can only be done with CSS or Javascript.
The action is applied only on the pages wp-admin/post.php
and wp-admin/post-new.php
.
The global $current_screen
has the Post Type information that is being shown.
And the global $post
has information about the current post where we check the permalink, p.ex.: http://site.com/contato
.
add_action( 'admin_footer-post.php', 'metabox_sopt_279492' );
add_action( 'admin_footer-post-new.php', 'metabox_sopt_279492' );
function metabox_sopt_279492() {
global $current_screen, $post;
if ( 'page' != $current_screen->id )
return;
$checkpages = array( 'sobre', 'contato' );
if( in_array( $post->post_name, $checkpages ) )
return;
?>
<script type="text/javascript">
jQuery(document).ready( function($) {
$('#postimagediv').remove();
});
</script>
<?php
}
To enable the pages just add the type page in the array:
add_theme_support('post-thumbnails', array('post','page'));
.header.php
what page is being accessed, and whether or not to show the highlighted image.– Fellipe Soares