Created
March 19, 2015 08:13
-
-
Save tribulant/2bb2f3869adcaed02737 to your computer and use it in GitHub Desktop.
Checkout: Filter - checkout_admin_orders_export_data Example
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 | |
function orders_export_data($data = null, $headings = null) { | |
foreach ($data as $dkey => $dval) { | |
//add a value to the tax of each order for example | |
$data[$dkey]['tax'] += 10; | |
} | |
return $data; | |
} | |
add_filter('checkout_admin_orders_export_data', 'orders_export_data', 10, 2); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment