Created
November 21, 2017 16:00
-
-
Save hereswhatidid/42f53aedeae3199e2bb17f62d9405127 to your computer and use it in GitHub Desktop.
Set all comment statuses to closed in WordPress
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
UPDATE wp_posts | |
SET comment_status = 'closed' | |
WHERE comment_status = 'open'; | |
UPDATE wp_posts | |
SET ping_status = 'closed' | |
WHERE ping_status = 'open'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment