edd_discount_product_reqs_met( int $code_id = null, bool $set_error = true )

Checks to see if the required products are in the cart


Description Description


Parameters Parameters

$code_id

(Optional) Discount ID.

Default value: null

$set_error

(Optional) Whether an error message be set in session.

Default value: true


Top ↑

Return Return

(bool) Are required products in the cart for the discount to hold.


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.