woocommerce_matched_tax_rates
Использование
add_filter( 'woocommerce_matched_tax_rates', 'wp_kama_woocommerce_matched_tax_rates_filter', 10, 6 ); /** * Function for `woocommerce_matched_tax_rates` filter-hook. * * @param $matched_tax_rates * @param $country * @param $state * @param $postcode * @param $city * @param $tax_class * * @return */ function wp_kama_woocommerce_matched_tax_rates_filter( $matched_tax_rates, $country, $state, $postcode, $city, $tax_class ){ // filter... return $matched_tax_rates; }
- $matched_tax_rates
- -
- $country
- -
- $state
- -
- $postcode
- -
- $city
- -
- $tax_class
- -
Где вызывается хук
woocommerce_matched_tax_rates
woocommerce/includes/class-wc-tax.php 442
return apply_filters( 'woocommerce_matched_tax_rates', $matched_tax_rates, $country, $state, $postcode, $city, $tax_class );