LLMS_Lesson::has_prerequisite()

Determine if lesson prereq is enabled and a prereq lesson is selected


Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.lesson.php

	public function has_prerequisite() {

		return ( 'yes' === $this->get( 'has_prerequisite' ) && $this->get( 'prerequisite' ) );

	}


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Use strict comparison.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.