Created
March 19, 2015 19:01
-
-
Save growdev/b68e35b5c6e0856bdbf1 to your computer and use it in GitHub Desktop.
Delete all WooCommerce Products 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
wp post list --field=ID --post_type=product | xargs wp post delete --force |
wp post list --field=ID --post_type=product --posts_per_page=2000 | xargs wp post delete --force
wp post list --field=ID --post_type=product --posts_per_page=2000 | xargs wp post delete --force
thanks, I already change to prestashop, anyway thanks for your reply!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi there!
please, may you help me?
I would like to create and update products through WP WC CLI. I can't success, I just can do it through:
| wp wc product update --name="test2" --user=admin | wp wc product update --name="test3" --user=admin | wp wc product update --name="test4" --user=admin | wp wc product update --name="test5" --user=admin | wp wc product update --name="test6" --user=admin
in command line (terminal)
hope you can give me a hand..
mybest