Enable or Disable comments in WordPress

Many time we do face spamming issue because of comment feature enabled in WordPress and we want to disable comments on all posts.

Simply login into the Server or phpmyadmin and run the following in WordPress database but make sure that you have selected correct database name.

UPDATE posts p SET comment_status = ‘closed’, ping_status = ‘closed’ WHERE comment_status = ‘open’;

If you want to enable the Wordpres post comments once spamming stopped, then execute the following command

UPDATE posts p SET comment_status = ‘open’, ping_status = ‘open’ WHERE comment_status = ‘closed’;

If you have any problem to enable or disable the WordPress posts, then simply contact us on live chat support.

 

About Anant 373 Articles
Senior technical writer