woocommerce_api_tax_response
Usage
add_filter( 'woocommerce_api_tax_response', 'wp_kama_woocommerce_api_tax_response_filter', 10, 4 ); /** * Function for `woocommerce_api_tax_response` filter-hook. * * @param $tax_data * @param $tax * @param $fields * @param $that * * @return */ function wp_kama_woocommerce_api_tax_response_filter( $tax_data, $tax, $fields, $that ){ // filter... return $tax_data; }
- $tax_data
- -
- $tax
- -
- $fields
- -
- $that
- -
Where the hook is called
woocommerce_api_tax_response
woocommerce/includes/legacy/api/v3/class-wc-api-taxes.php 166
return array( 'tax' => apply_filters( 'woocommerce_api_tax_response', $tax_data, $tax, $fields, $this ) );