Last active
June 13, 2018 08:07
-
-
Save lukecav/d642b576b29a01cf741eaae0108960e6 to your computer and use it in GitHub Desktop.
Export orders and products from WooCommerce using 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 export --dir=/wp-content/backup/ --post_type=shop_order --start_date=2018-05-03 --end_date=2018-05-24 | |
wp export --dir=/wp-content/backup/ --post_type=product --start_date=2018-05-03 --end_date=2018-05-24 | |
wp import demosite.wordpress.2018-05-24.xml --path=/wp-content/backup/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.wordpress.org/cli/commands/export/
https://developer.wordpress.org/cli/commands/import/
https://docs.woocommerce.com/document/installed-taxonomies-post-types/