Created
May 4, 2015 06:03
-
-
Save BronsonQuick/8fc49236e57d94abf7cc to your computer and use it in GitHub Desktop.
Delete 1000 WCCommerce Completed orders at a time via WP-CLI
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 characters
wp post list --field=ID --post_type=shop_order --post_status='wc-completed' --posts_per_page=1000 | xargs wp post delete --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment