woocommerce_order_discount_to_display filter-hookWC 2.7.0.

Filter the discount amount to display.

Usage

add_filter( 'woocommerce_order_discount_to_display', 'wp_kama_woocommerce_order_discount_to_display_filter', 10, 2 );

/**
 * Function for `woocommerce_order_discount_to_display` filter-hook.
 * 
 * @param  $wc_price 
 * @param  $that     
 *
 * @return 
 */
function wp_kama_woocommerce_order_discount_to_display_filter( $wc_price, $that ){

	// filter...
	return $wc_price;
}
$wc_price
-
$that
-

Changelog

Since 2.7.0. Introduced.

Where the hook is called

WC_Abstract_Order::get_discount_to_display()
woocommerce_order_discount_to_display
woocommerce/includes/abstracts/abstract-wc-order.php 2214
return apply_filters( 'woocommerce_order_discount_to_display', wc_price( $this->get_total_discount( 'excl' === $tax_display ), array( 'currency' => $this->get_currency() ) ), $this );

Where the hook is used in WooCommerce

Usage not found.