Last active
March 15, 2016 19:26
-
-
Save lstanard/32b62ef29856ecda9547 to your computer and use it in GitHub Desktop.
WP action and callback function to remove support for comments from the 'post' 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
function remove_comment_capability() { | |
remove_post_type_support('post', 'comments'); | |
remove_post_type_support('page', 'comments'); | |
} | |
add_action('init', 'remove_comment_capability'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment