mitch95
5/26/2017 - 7:55 AM

Remove WordPress comments from posts and pages.

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);