edd_set_cart_discount( string $code = '' )
Set the active discount for the shopping cart
Description Description
Parameters Parameters
- $code
-
(Optional) Discount code
Default value: ''
Return Return
(string[]) All currently active discounts
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
1.4.1 | Introduced. |