Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › add free gift programmatically to cart
I’d like to set free gift programmatically.
Is there a function like WooCommerce’s add_to_cart()?
(Also I want to keep “Auto coupon” & “Apply silently” setting on)
No, there is no function for that.