LLMS_Coupon::is_expired()

Determine if a coupon is expired


Return Return

(boolean) true if expired, false otherwise


Top ↑

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' );
		}
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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