woocommerce_api_orders_bulk_response
Usage
add_filter( 'woocommerce_api_orders_bulk_response', 'wp_kama_woocommerce_api_orders_bulk_response_filter', 10, 2 ); /** * Function for `woocommerce_api_orders_bulk_response` filter-hook. * * @param $orders * @param $that * * @return */ function wp_kama_woocommerce_api_orders_bulk_response_filter( $orders, $that ){ // filter... return $orders; }
- $orders
- -
- $that
- -
Where the hook is called
woocommerce_api_orders_bulk_response
woocommerce/includes/legacy/api/v3/class-wc-api-orders.php 1870
return array( 'orders' => apply_filters( 'woocommerce_api_orders_bulk_response', $orders, $this ) );
woocommerce/includes/legacy/api/v2/class-wc-api-orders.php 1823
return array( 'orders' => apply_filters( 'woocommerce_api_orders_bulk_response', $orders, $this ) );