-
-
Save krogsgard/0fbdbdfd03aa09a80cf1 to your computer and use it in GitHub Desktop.
update comment status with MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* select posts with closed comment_status for checking how many you have */ | |
select * from wp_posts where comment_status = 'closed' and post_status = 'publish' and post_type = 'post' | |
/* update posts to open the comment status */ | |
update wp_posts set comment_status = 'open' where post_status = 'publish' and post_type = 'post' and comment_status = 'closed' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment