woocommerce_order_get_total_discount хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_order_get_total_discount', 'filter_function_name_6456', 10, 2 ); function filter_function_name_6456( $NumberUtil::round, $that ){ // filter... return $NumberUtil::round; }
- $NumberUtil::round
- -
- $that
- -
Где вызывается хук
woocommerce_order_get_total_discount
woocommerce/includes/abstracts/abstract-wc-order.php 433
return apply_filters( 'woocommerce_order_get_total_discount', NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION ), $this );