Posted By

derdesign on 04/27/11


Tagged

wordpress


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Terion


Disable comments globally in WordPress


 / Published in: PHP
 

  1. /* Add this code on your functions.php (or other) file */
  2.  
  3. function __disable_feature($data) { return false; }
  4.  
  5. add_filter('comments_number', '__disable_feature');
  6.  
  7. add_filter('comments_open', '__disable_feature');

Report this snippet  

You need to login to post a comment.