Sometimes we don’t want certain features in the edit screen of back end when we are in using custom post types or some times default post types.You can easily remove those by using the following code.
[php]
add_action( ‘init’, ‘spi_remove_posttype_supports’ );
function spi_remove_posttype_supports() {
remove_post_type_support(‘page’,’thumbnail’);//removes support for featured images in the page editor
remove_post_type_support(‘post’,’comments’); // removes support for comments in the post editor
}
[/php]