WC_Cart::get_applied_coupons()publicWC 1.0

Gets the array of applied coupon codes.

Method of the class: WC_Cart{}

No Hooks.

Return

Array. of applied coupons

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->get_applied_coupons();

WC_Cart::get_applied_coupons() code WC 8.6.1

public function get_applied_coupons() {
	return (array) $this->applied_coupons;
}