Skip to content

Instantly share code, notes, and snippets.

@tribulant
Created March 19, 2015 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tribulant/2bb2f3869adcaed02737 to your computer and use it in GitHub Desktop.
Save tribulant/2bb2f3869adcaed02737 to your computer and use it in GitHub Desktop.
Checkout: Filter - checkout_admin_orders_export_data Example
<?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