LLMS_Course::get_quizzes()

Retrieve an array of quizzes within a course


Return Return

(int[]) Array of WP_Post IDs of the quizzes.


Top ↑

Source Source

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

	public function get_quizzes() {

		$quizzes = array();
		foreach ( $this->get_lessons( 'lessons' ) as $lesson ) {
			if ( $lesson->has_quiz() ) {
				$quizzes[] = $lesson->get( 'quiz' );
			}
		}
		return $quizzes;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Unknown.
3.12.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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