ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:40 PM

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