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