The Order, Coupon, Subscription Export Import for WooCommerce plugin offers a convenient solution for effortlessly importing and exporting WooCommerce orders. However, to export the user role and additional metadata of the orders, you need to paste the code snippet below in the functions.php file. Follow the below-mentioned steps:
- From the WordPress admin dashboard, navigate to Appearance > Theme File Editor.
- Under Theme Files, select Theme Functions (functions.php).
- Paste the code snippet at the end of the functions.php file of your active child theme.
Code snippet:
Comments (2)
Randall
August 4, 2018
Is there a filter to do the reverse and import additional meta data that has been exported using this method to generate the csv file?
Mark
August 7, 2018
Hi,
You can import any custom field data or metadata by keeping them in a column with name as below:
meta:metafieldname
You may specify the corresponding meta field name. If any further queries, please reach us via support.