Disable WordPress Comments

Add the following code to functions.php, which is under your theme folder: // Disable Comments // Disable support for comments and trackbacks in post types function df_disable_comments_post_types_support() { $post_types = get_post_types(); foreach ($post_types as $post_type) { if(post_type_supports($post_type, ‘comments’)) { remove_post_type_support($post_type,… Read moreDisable WordPress Comments