woocommerce_cart_tax_totals
Использование
add_filter( 'woocommerce_cart_tax_totals', 'wp_kama_woocommerce_cart_tax_totals_filter', 10, 2 ); /** * Function for `woocommerce_cart_tax_totals` filter-hook. * * @param $tax_totals * @param $that * * @return */ function wp_kama_woocommerce_cart_tax_totals_filter( $tax_totals, $that ){ // filter... return $tax_totals; }
- $tax_totals
- -
- $that
- -
Где вызывается хук
woocommerce_cart_tax_totals
woocommerce/includes/class-wc-cart.php 903
return apply_filters( 'woocommerce_cart_tax_totals', $tax_totals, $this );