Last active
December 7, 2022 03:33
-
-
Save adrianocalvitto/18ce0011abccba1f622d6b7bb362549f to your computer and use it in GitHub Desktop.
Export All WooCommerce Orders via WP-CLI in a single .xml file
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 export --post__in=$(wp eval 'foreach( get_posts(array("post_type" => "shop_order", "posts_per_page" => -1, "fields" => "ids")) as $id ) { echo $id. ","; }') --max_file_size=200 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment