Browse: Home / Functions /

learndash_set_quiz_questions_dirty

learndash_set_quiz_questions_dirty( int $quiz_id )

Sets the ‘dirty’ flag for the quiz.


Description #

This ‘dirty’ flag is used to trigger the Quiz logic to reload the questions via queries instead of using the stored questions post meta. This generally means something changed with the questions.


Parameters #

$quiz_id

(int) (Optional) Quiz ID to set dirty flag. Default 0.


Source #

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


Changelog #

Changelog
Version Description
2.6.0 Introduced.