Skip to content

Instantly share code, notes, and snippets.

Last active Oct 24, 2017
What would you like to do?
WooCommerce Order Import Export - Export additional fields
add_filter( ‘hf_csv_order_post_additional_columns’, ‘woocommerce_csv_order_post_add_additional_columns’ , 10 , 1 );
function woocommerce_csv_order_post_add_additional_columns($additional_meta) {
$additional_meta = array(‘pdf_invoice_num’ => ‘_invoice_number_display’); // for invoice number
$additional_meta[‘wf_order_person’] = ‘wf_order_person’; // for field wf_order_person
$additional_meta[‘Body Type’] = ‘Body Type’; // for field Body Type
return $additional_meta;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment