Disable WordPress Comments Sitewide
If you get a lot of spam comments but dont want to install a plugin or delete/hide any existing comments manually for all post types then all you have to do is add this function into your current's theme functions.php…