WC_Cart::get_total_discount PHP Method

get_total_discount() public method

Gets the total discount amount - both kinds.
public get_total_discount ( ) : mixed
return mixed formatted price or false if there are none
    public function get_total_discount()
    {
        if ($this->get_cart_discount_total()) {
            $total_discount = wc_price($this->get_cart_discount_total());
        } else {
            $total_discount = false;
        }
        return apply_filters('woocommerce_cart_total_discount', $total_discount, $this);
    }
WC_Cart