woocommerce_report_customers_prepare_export_item
Filter the column values of an item being exported.
Usage
add_filter( 'woocommerce_report_customers_prepare_export_item', 'wp_kama_woocommerce_report_customers_prepare_export_item_filter', 10, 2 ); /** * Function for `woocommerce_report_customers_prepare_export_item` filter-hook. * * @param object $export_item Key value pair of Column ID => Row Value. * @param object $item Single report item/row. * * @return object */ function wp_kama_woocommerce_report_customers_prepare_export_item_filter( $export_item, $item ){ // filter... return $export_item; }
- $export_item(object)
- Key value pair of Column ID => Row Value.
- $item(object)
- Single report item/row.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
woocommerce/src/Admin/API/Reports/Customers/Controller.php 594-598
return apply_filters( 'woocommerce_report_customers_prepare_export_item', $export_item, $item );