Browse: Home / Hooks /


apply_filters( 'learndash_fetch_quiz_questions',  array $pro_questions,  int $quiz_id,  boolean $random,  int $max )

Filters pro quiz questions list.

Description #

Used in fetchAll method of WpProQuiz_Model_QuestionMapper class to fetch all pro quiz questions.

Parameters #


(array) An array of pro quiz question IDs.


(int) ID of the quiz.


(boolean) Whether to fetch questions in random order.


(int) The maximum number of questions to be fetched.

Source #

File: includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuestionMapper.php

Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 * Example usage for learndash_fetch_quiz_questions filter.
	function( $pro_questions, $quiz_id, $random, $max ) {
		// May add any custom logic using $pro_questions, $quiz_id, $random, $max.

		// Always return $pro_questions.
		return $pro_questions;