Last active
February 9, 2022 14:37
-
-
Save atxiii/ed437d101867d37c4387daf5f3109593 to your computer and use it in GitHub Desktop.
WP-CLI Commands
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 Woocomerce Order (CLI v2.3.0) | |
wp post delete $(wp post list --field=ID --post_type="shop_order") --force | |
# Import Data with skip authors | |
wp import orders.xml --authors=skip | |
# Export all post type with unlimite size | |
wp export --post_type=any --max_file_size=-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment