WC_Cart::get_total_discount()publicWC 1.0

Gets the total discount amount.

Method of the class: WC_Cart{}

Hooks from the method

Return

Mixed. formatted price or false if there are none

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_total_discount();

WC_Cart::get_total_discount() code WC 8.7.0

public function get_total_discount() {
	return apply_filters( 'woocommerce_cart_total_discount', $this->get_discount_total() ? wc_price( $this->get_discount_total() ) : false, $this );
}