LLMS_Coupon::is_expired()
Determine if a coupon is expired
Return Return
(boolean) true if expired, false otherwise
Source Source
File: includes/models/model.llms.coupon.php
public function is_expired() { $expires = $this->get_expiration_time(); // No expiration date, can't expire. if ( ! $expires ) { return false; } else { return $expires < llms_current_time( 'timestamp' ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |