WordPress Disable all comments through MySQL

Here is a simple MySQL query which help you to disable all comments on WordPress blog. Just run this query on your server, before running this query we recommend to keep an updated copy of database safely.

<?php
//Query for Disable WP comments
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';
 
// Query for Enable WP comments
UPDATE wp_posts SET comment_status = 'open', ping_status = 'open'; 
?>

Related posts:

Partner with Us

We are providing an exclusive partnership offer to individuals and companies who are interested in setting up their own web design & development company. For more information about how to partner with us, please contact us