LLMS_Student_Quizzes::get_all( mixed $quiz = array() )

Retrieve quiz data for a student and optionally filter by quiz_id(s)


Description Description


Parameters Parameters

$quiz

(mixed) (Optional) WP Post ID / Array of WP Post IDs

Default value: array()


Top ↑

Return Return

(object) Instance of LLMS_Query_Quiz_Attempt


Top ↑

Source Source

File: includes/models/model.llms.student.quizzes.php

	public function get_all( $quiz = array() ) {

		$query = new LLMS_Query_Quiz_Attempt( array(
			'quiz_id' => $quiz,
			'per_page' => 5000,
		) );

		return apply_filters( 'llms_student_get_quiz_data', $query->get_attempts(), $quiz );

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: