1. Home
  2. Knowledge Base
  3. PHP
  4. Global disable multi-site pingbacks and comments

Global disable multi-site pingbacks and comments

Saturday, 11 May 2019
PHP
The following code will disable comments and pingbacks in a WordPress. add_filter( 'pings_open', '__return_false', 10, 2 ); add_filter( 'comments_open', '__return_false', 10, 2 ); To disable for all multi-site websites, you…