WC_Cart::set_applied_coupons()
Sets the array of applied coupon codes.
Method of the class: WC_Cart{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->set_applied_coupons( $value );
- $value(array)
- List of applied coupon codes.
Default: array()
WC_Cart::set_applied_coupons() WC Cart::set applied coupons code WC 9.4.2
public function set_applied_coupons( $value = array() ) { $this->applied_coupons = (array) $value; }