woocommerce_report_stock_prepare_export_item
Filter to prepare extra columns in the export item for the stock report.
Usage
add_filter( 'woocommerce_report_stock_prepare_export_item', 'wp_kama_woocommerce_report_stock_prepare_export_item_filter', 10, 2 ); /** * Function for `woocommerce_report_stock_prepare_export_item` filter-hook. * * @param $export_item * @param $item * * @return */ function wp_kama_woocommerce_report_stock_prepare_export_item_filter( $export_item, $item ){ // filter... return $export_item; }
- $export_item
- -
- $item
- -
Changelog
Since 1.6.0 | Introduced. |
Where the hook is called
woocommerce/src/Admin/API/Reports/Stock/Controller.php 533-537
return apply_filters( 'woocommerce_report_stock_prepare_export_item', $export_item, $item );