Created
September 15, 2018 15:09
-
-
Save DavidPeralvarez/21a00e8d70e097d336e9528f71fb64cb to your computer and use it in GitHub Desktop.
Cómo desactivar los comentarios en un Custom Post Type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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