woocommerce_cart_totals_get_fees_from_cart_taxes
Использование
add_filter( 'woocommerce_cart_totals_get_fees_from_cart_taxes', 'wp_kama_woocommerce_cart_totals_get_fees_from_taxes_filter', 10, 3 ); /** * Function for `woocommerce_cart_totals_get_fees_from_cart_taxes` filter-hook. * * @param $taxes * @param $fee * @param $that * * @return */ function wp_kama_woocommerce_cart_totals_get_fees_from_taxes_filter( $taxes, $fee, $that ){ // filter... return $taxes; }
- $taxes
- -
- $fee
- -
- $that
- -
Где вызывается хук
woocommerce_cart_totals_get_fees_from_cart_taxes
woocommerce/includes/class-wc-cart-totals.php 322
$fee->taxes = apply_filters( 'woocommerce_cart_totals_get_fees_from_cart_taxes', $fee->taxes, $fee, $this );