Created
July 18, 2018 08:22
-
-
Save exlil/93dadd20e076273ecdc04289f3be735b to your computer and use it in GitHub Desktop.
Delete all WooCommerce product categories with wp-cli
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
wp term list product_cat --field=term_id | xargs wp term delete product_cat | |
# Inspired by https://gist.github.com/growdev/b68e35b5c6e0856bdbf1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment