Add Order Custom Metadata Before the Line Items Columns in an Exported CSV file in WooCommerce

When using the Order, Coupon, Subscription Export Import for WooCommerce plugin, for including additional custom metadata before the line item columns in the CSV file, use the below mentioned code snippet. You need to add the code in the functions.php file and change the parameters RDI and LDI with the custom field names that you need to export. To reach 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:

Article by

WebToffee Team is a group of WordPress and WooCommerce enthusiasts consisting of expert developers, testing engineers, technical support engineers, and SMEs.

Comments (2)

Got any query? Please leave a comment or reach out to our support

Your email address will not be published. Required fields are marked *