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
<?php | |
/** | |
* The use of this snippet requires at least WooCommerce 2.2 | |
*/ | |
/** | |
* Alter the column headers for the orders CSV to split item_meta into separate columns | |
* | |
* Note that this change is only applied to the Default - One Row per Item format | |
* |
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
<?php | |
/** | |
* Modify the order export column headers to seperate coupons into multiple columns | |
* | |
* @param array $column_headers column headers in column_key => column_name format | |
* @param \WC_Customer_Order_CSV_Export_Generator the generator instance | |
* @return array modified column headers | |
*/ | |
function sv_csv_export_multi_column_coupons_order_headers( $column_headers, $generator ) { |