Skip to content

Instantly share code, notes, and snippets.

@tribulant
Last active August 29, 2015 14:17
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/5d405cbca95e306c843e to your computer and use it in GitHub Desktop.
Save tribulant/5d405cbca95e306c843e to your computer and use it in GitHub Desktop.
Checkout: Filter - checkout_admin_orders_export_headings Example
<?php
function orders_export_headings($headings = null, $data = null) {
//remove the 'paid' column
unset($headings['paid']);
//add a custom column
$headings['custom'] = "My Column";
return $headings;
}
add_filter('checkout_admin_orders_export_headings', 'orders_export_headings', 10, 2);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment