LLMS_Lesson::has_prerequisite()
Determine if lesson prereq is enabled and a prereq lesson is selected
Return Return
(boolean)
Source Source
File: includes/models/model.llms.lesson.php
public function has_prerequisite() { return ( 'yes' === $this->get( 'has_prerequisite' ) && $this->get( 'prerequisite' ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Use strict comparison. |
3.0.0 | Introduced. |