WC_Cart::remove_coupons PHP Метод

remove_coupons() публичный Метод

Remove coupons from the cart of a defined type. Type 1 is before tax, type 2 is after tax.
public remove_coupons ( $deprecated = null )
    public function remove_coupons($deprecated = null)
    {
        $this->applied_coupons = $this->coupon_discount_amounts = $this->coupon_discount_tax_amounts = $this->coupon_applied_count = array();
        WC()->session->set('applied_coupons', array());
        WC()->session->set('coupon_discount_amounts', array());
        WC()->session->set('coupon_discount_tax_amounts', array());
    }
WC_Cart