Developers can programically return coupons. This function will read those values into our WC_Coupon class.
public read_manual_coupon ( string $code, array $coupon ) | ||
$code | string | Coupon code |
$coupon | array | Array of coupon properties |