Remove WordPress comments from posts and pages.
## Remove support for comments
function remove_comment_support()
{
remove_post_type_support( 'post', 'comments' );
remove_post_type_support( 'page', 'comments' );
}
add_action('init', 'remove_comment_support', 100);