LLMS_Coupon::has_remaining_uses()

Determine if a coupon has uses remaining


Return Return

(boolean) true if uses are remaining, false otherwise


Top ↑

Source Source

File: includes/models/model.llms.coupon.php

	public function has_remaining_uses() {
		$uses = $this->get_remaining_uses();
		if ( is_numeric( $uses ) ) {
			return ( $uses >= 1 ) ? true : false;
		}
		return true;
	}


Top ↑

User Contributed Notes User Contributed Notes

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