EDD_Discount::is_active( bool $update = true, bool $set_error = true )

Checks if a discount code is active.


Description Description


Parameters Parameters

$update

(Optional) Update the discount to expired if an one is found but has an active status.

Default value: true

$set_error

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

Default value: true


Top ↑

Return Return

(bool) If the discount is active or not.


Top ↑

Source Source

File: includes/class-edd-discount.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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