woocommerce_report_orders_prepare_export_item
Filter to prepare extra columns in the export item for the orders report.
Использование
add_filter( 'woocommerce_report_orders_prepare_export_item', 'wp_kama_woocommerce_report_orders_prepare_export_item_filter', 10, 2 ); /** * Function for `woocommerce_report_orders_prepare_export_item` filter-hook. * * @param $export_item * @param $item * * @return */ function wp_kama_woocommerce_report_orders_prepare_export_item_filter( $export_item, $item ){ // filter... return $export_item; }
- $export_item
- -
- $item
- -
Список изменений
С версии 1.6.0 | Введена. |
Где вызывается хук
woocommerce/src/Admin/API/Reports/Orders/Controller.php 575-579
return apply_filters( 'woocommerce_report_orders_prepare_export_item', $export_item, $item );