LLMS_Course::is_prerequisite_complete( string $type = 'course', $student_id = null )
Determine if a prerequisite is completed for a student
Parameters Parameters
- $type
-
(string) (Optional) Type of prereq [course|track].
Default value: 'course'
Return Return
(boolean)
Source Source
File: includes/models/model.llms.course.php
} else { $is_open = ( $this->has_date_passed( 'start_date' ) && ! $this->has_date_passed( 'end_date' ) ); } /** * Filters whether or not the course is considered open based on the current date. * * @since Unknown * * @param boolean $is_open Whether or not enrollment is open. * @param LLMS_Course $course Course object. */ return apply_filters( 'llms_is_course_open', $is_open, $this ); } /** * Determine if a prerequisite is completed for a student * * @since 3.0.0 * * @param string $type Type of prereq [course|track].
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |