edd_is_discount_not_global( int $code_id )
Check if a discount is not global.
Description Description
By default discounts are applied to all products in the cart. Non global discounts are applied only to the products selected as requirements.
Parameters Parameters
- $code_id
-
(Required) Discount ID.
Return Return
(boolean) Whether or not discount code is not global.
Source Source
File: includes/discount-functions.php
Changelog Changelog
Version | Description |
---|---|
2.7 | Updated to use EDD_Discount object. |
1.5 | Introduced. |