Last active
November 2, 2017 01:18
-
-
Save n8kowald/462c88cc637116a6ec468b63b0d473dd to your computer and use it in GitHub Desktop.
Wordpress SQL queries
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 all of posts of custom post type | |
DELETE FROM `wp_posts` WHERE `post_type` = 'post-type'; | |
-- Delete all unpublished of custom post type | |
DELETE FROM `wp_posts` WHERE `post_status` = 'draft' and `post_type` = 'post-type'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment