Determine if the course is at capacity based on course capacity settings

Return Return

(boolean) Returns true if not at capacity & false if at or over capacity.

Top ↑

Source Source

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

		$now  = current_time( 'timestamp' );
		$date = $this->get_date( $date_key, 'U' );

		 * If there's no date, we can't make a comparison
		 * so assume it's unset and unnecessary
		 * so return 'false'.
		if ( ! $date ) {
			return false;


		return $now > $date;


Top ↑

Changelog Changelog

Version Description
3.15.0 Unknown.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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