Created
August 2, 2015 11:01
-
-
Save deadlyhifi/13a8a04b420e1208e62f to your computer and use it in GitHub Desktop.
WP Delete Post Revisions
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
DELETE | |
FROM wp_posts | |
WHERE post_type = 'revision'; | |
DELETE FROM wp_postmeta | |
WHERE post_id NOT IN (SELECT ID FROM wp_posts); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment