Mass closing of comments for WordPress

I couldn’t seem to find in the admin section how to mass close posts for commenting. When spam gets past Akismet it’s usually for a really old post. So I looked in the database and made the change by hand

UPDATE wp_posts SET comment_status = 'closed' WHERE ID < 283;

**UPDATE** Heh, right after I posted this, I got some ping spam...

UPDATE wp_posts SET ping_status = 'closed' WHERE ID < 283;

About Nathan Powell

I am a middle aged technologist freak-ball.
This entry was posted in lifehacking. Bookmark the permalink.

Comments are closed.