Last active
August 29, 2015 14:17
-
-
Save tribulant/5d405cbca95e306c843e to your computer and use it in GitHub Desktop.
Checkout: Filter - checkout_admin_orders_export_headings 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_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