woocommerce_cart_total_discount хук-фильтр . WC 1.0
Gets the total discount amount.
Использование
add_filter( 'woocommerce_cart_total_discount', 'filter_function_name_1405', 10, 2 ); function filter_function_name_1405( $wc_price(), $that ){ // filter... return $wc_price(); }
- $wc_price()
- -
- $that
- -
Где вызывается хук
woocommerce_cart_total_discount
woocommerce/includes/class-wc-cart.php 2071
return apply_filters( 'woocommerce_cart_total_discount', $this->get_discount_total() ? wc_price( $this->get_discount_total() ) : false, $this );