woocommerce_matched_tax_rates хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_matched_tax_rates', 'filter_function_name_3429', 10, 6 ); function filter_function_name_3429( $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 441
return apply_filters( 'woocommerce_matched_tax_rates', $matched_tax_rates, $country, $state, $postcode, $city, $tax_class );