woocommerce_calc_tax хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_calc_tax', 'filter_function_name_3221', 10, 5 ); function filter_function_name_3221( $taxes, $price, $rates, $price_includes_tax, $deprecated ){ // filter... return $taxes; }
- $taxes
- -
- $price
- -
- $rates
- -
- $price_includes_tax
- -
- $deprecated
- -
Где вызывается хук
woocommerce_calc_tax
woocommerce/includes/class-wc-tax.php 74
return apply_filters( 'woocommerce_calc_tax', $taxes, $price, $rates, $price_includes_tax, $deprecated );