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.


Top ↑

Return Return

(boolean) Whether or not discount code is not global.


Top ↑

Source Source

File: includes/discount-functions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Updated to use EDD_Discount object.
1.5 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.