learndash_get_quizzes_for_question

learndash_get_quizzes_for_question( int $question_post_id,  boolean $return_flat_array = false )

Gets an array of Quiz IDs where the question is used.


Description #


Parameters #

$question_post_id

(int) (Optional) Question Post ID. Default 0.

$return_flat_array

(boolean) (Optional) Default is false and will return primary and secondary sub-array sets.

Default value: false


Return #

(array) An array of quiz post IDs.


Source #

File: includes/quiz/ld-quiz-functions.php


Changelog #

Changelog
Version Description
2.6.0 Introduced.