Created
March 31, 2019 13:01
-
-
Save deeman/c38df21dbba610f1e6684800cfd80e92 to your computer and use it in GitHub Desktop.
Remove Comment in WordPress via Functions
This file contains hidden or 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 from pages | |
| add_action('init', 'remove_comment_support', 100); | |
| function remove_comment_support() { | |
| remove_post_type_support( 'page', 'comments' ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment