woocommerce_cart_tax_totals
Usage
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
- -
Where the hook is called
woocommerce_cart_tax_totals
woocommerce/includes/class-wc-cart.php 971
return apply_filters( 'woocommerce_cart_tax_totals', $tax_totals, $this );