LLMS_Course::is_enrollment_open()
Determine if students can access course content based on the current date
Return Return
(boolean)
Source Source
File: includes/models/model.llms.course.php
return ( $this->get( 'prerequisite' ) || $this->get( 'prerequisite_track' ) ); } elseif ( 'course' === $type ) { return ( $this->get( 'prerequisite' ) ) ? true : false; } elseif ( 'course_track' === $type ) { return ( $this->get( 'prerequisite_track' ) ) ? true : false; } } return false; } /** * Determine if students can access course content based on the current date * * @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. |