LLMS_Course::is_enrollment_open()
Determine if students can access course content based on the current date
Description Description
Return Return
(boolean)
Source Source
File: includes/models/model.llms.course.php
public function is_enrollment_open() { // if no period is set, enrollment is automatically open if ( 'yes' !== $this->get( 'enrollment_period' ) ) { $ret = true; } // End if(). else { $ret = ( $this->has_date_passed( 'enrollment_start_date' ) && ! $this->has_date_passed( 'enrollment_end_date' ) ); } return apply_filters( 'llms_is_course_enrollment_open', $ret, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: