Last active
March 16, 2016 16:28
-
-
Save lstanard/330e7c39c3e6f3971523 to your computer and use it in GitHub Desktop.
WP action and callback function to remove comments meta boxes from pages and posts
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_meta_boxes() { | |
remove_meta_box('commentsdiv', 'page', 'normal'); | |
remove_meta_box('commentsdiv', 'post', 'normal'); | |
remove_meta_box('commentstatusdiv', 'post', 'normal'); | |
} | |
add_action('do_meta_boxes', 'remove_comment_meta_boxes'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment