woocommerce_order_get_total_discount filter-hookWC 1.0

Usage

add_filter( 'woocommerce_order_get_total_discount', 'wp_kama_woocommerce_order_get_total_discount_filter', 10, 2 );

/**
 * Function for `woocommerce_order_get_total_discount` filter-hook.
 * 
 * @param  $NumberUtil::round 
 * @param  $that              
 *
 * @return 
 */
function wp_kama_woocommerce_order_get_total_discount_filter( $NumberUtil::round, $that ){

	// filter...
	return $NumberUtil::round;
}
$NumberUtil::round
-
$that
-

Where the hook is called

WC_Abstract_Order::get_total_discount()
woocommerce_order_get_total_discount
woocommerce/includes/abstracts/abstract-wc-order.php 445
return apply_filters( 'woocommerce_order_get_total_discount', NumberUtil::round( $total_discount, WC_ROUNDING_PRECISION ), $this );

Where the hook is used in WooCommerce

Usage not found.