Skip to content

Instantly share code, notes, and snippets.

@tribulant
Last active August 29, 2015 14:17
Embed
What would you like to do?
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