WordPress at Your Fingertips
function is not described

WC_Cart::set_applied_coupons() public WC 1.0

Sets the array of applied coupon codes.

{} It's a method of the class: WC_Cart{}

No Hooks.


null. Nothing.


$WC_Cart = new WC_Cart();
$WC_Cart->set_applied_coupons( $value );
List of applied coupon codes.
Default: array()

Code of WC_Cart::set_applied_coupons() WC 5.6.0

public function set_applied_coupons( $value = array() ) {
	$this->applied_coupons = (array) $value;