Created
February 12, 2014 16:47
-
-
Save wpsmith/8959454 to your computer and use it in GitHub Desktop.
Revisions
-
wpsmith created this gist
Feb 12, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ DELETE a,b,c FROM {PREFIX}_posts a LEFT JOIN {PREFIX}_term_relationships b ON (a.ID = b.object_id) LEFT JOIN {PREFIX}_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'POST_TYPE' AND a.post_date < '2014-01-01'