WC_Cart::remove_coupons( null $deprecated = null )

Remove coupons from the cart of a defined type. Type 1 is before tax, type 2 is after tax.


Description Description


Parameters Parameters

$deprecated

(Optional) No longer used.

Default value: null


Top ↑

Source Source

File: includes/class-wc-cart.php

	public function remove_coupons( $deprecated = null ) {
		$this->set_coupon_discount_totals( array() );
		$this->set_coupon_discount_tax_totals( array() );
		$this->set_applied_coupons( array() );
		$this->session->set_session();
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.