LLMS_Course::has_capacity()
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.
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.15.0 | Unknown. |
3.0.0 | Introduced. |