woocommerce_get_shipping_tax хук-фильтр . WC 1.0
Get shipping tax.
Использование
add_filter( 'woocommerce_get_shipping_tax', 'filter_function_name_931', 10, 2 ); function filter_function_name_931( $array_sum(), $that ){ // filter... return $array_sum(); }
- $array_sum()
- -
- $that
- -
Где вызывается хук
woocommerce_get_shipping_tax
woocommerce/includes/class-wc-shipping-rate.php 229
return apply_filters( 'woocommerce_get_shipping_tax', count( $this->taxes ) > 0 && ! WC()->customer->get_is_vat_exempt() ? array_sum( $this->taxes ) : 0, $this );