sql query
UPDATE wp_posts
SET comment_status = ‘closed’, ping_status = ‘closed’;

Leave a Reply