what would be the sql command to run to
close comments on all posts of a blog?
what would be the sql command to run to
close comments on all posts of a blog?
UPDATE wp_posts SET comment_status = 'closed' WHERE comment_status = 'open';
Likely you'll want to hit (ping|track)back status on your posts as well:
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed' WHERE comment_status = 'open';
As usual, table prefix assumed to be 'wp_', so change the name of the posts table (wp_posts) for your use, if necessary.
thx
This topic has been closed to new replies.