Instantly share code, notes, and snippets.

Embed
What would you like to do?
Cómo desactivar los comentarios en un Custom Post Type
/**
* Remove comments support from posts.
*/
add_action( 'init', 'scv_remove_comments_from_posts', 10 );
function scv_remove_comments_from_posts() {
remove_post_type_support( 'post', 'comments' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment