ControlledChaos
5/7/2015 - 8:24 AM

Disable Comments in Custom Post Types

Disable Comments in Custom Post Types

<?php

function ccd_modify_post_type_supports() {
  
    remove_post_type_support( 'pages', 'comments' );
    
}
add_action( 'init', 'ccd_modify_post_type_supports', 11 );

?>

Disable Comments in Custom Post Types

WordPress Snippet