Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WP action and callback function to remove support for comments from the 'post' post type
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
You can’t perform that action at this time.