Created
January 27, 2021 15:42
-
-
Save trueqap/640aa82b7c2028ba0045e25d7a18890a to your computer and use it in GitHub Desktop.
WooCommerce-Bulk-Delete-Product-With-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
| for run in {1..2}; do wp post delete $(wp wc product list --user=1 --format=ids --status=draft --per_page=100) --force; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment