LLMS_Course::is_open()
Determine if students can access course content based on the current date
Description Description
Note that enrollment does not affect the outcome of this check as regardless of enrollment, once a course closes content is locked.
Return Return
(boolean)
Source Source
File: includes/models/model.llms.course.php
} /** * Filters whether or not course enrollment is open. * * @since Unknown * * @param boolean $is_open Whether or not enrollment is open. * @param LLMS_Course $course Course object. */ return apply_filters( 'llms_is_course_enrollment_open', $is_open, $this ); } /** * Determine if students can access course content based on the current date * * Note that enrollment does not affect the outcome of this check as regardless * of enrollment, once a course closes content is locked. * * @since 3.0.0 * @since 3.7.0 Unknown. *
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.7.0 | Unknown. |
3.0.0 | Introduced. |