WC_Cart::get_discounts_before_tax PHP 메소드

get_discounts_before_tax() 공개 메소드

Gets the total (product) discount amount - these are applied before tax.
사용 중단: Order discounts (after tax) removed in 2.3 so multiple methods for discounts are no longer required.
public get_discounts_before_tax ( ) : mixed
리턴 mixed formatted price or false if there are none
    public function get_discounts_before_tax()
    {
        wc_deprecated_function('get_discounts_before_tax', '2.3', 'get_total_discount');
        if ($this->get_cart_discount_total()) {
            $discounts_before_tax = wc_price($this->get_cart_discount_total());
        } else {
            $discounts_before_tax = false;
        }
        return apply_filters('woocommerce_cart_discounts_before_tax', $discounts_before_tax, $this);
    }
WC_Cart