can use this to apply global setting. I’m dealing with 2000 quizzes

closed

add_filter(“hdq_init”, “set_my_custom_hd_quiz_defaults”);

function set_my_custom_hd_quiz_defaults($quiz_options) {

    // 1. Highlight correct / incorrect selected answers on completion

    $quiz_options[“show_results”] = “yes”; 

 

    // 2. Show the correct answers on completion

    $quiz_options[“show_results_correct”] = “yes”; 

 

    // 3. Immediately mark answer as correct or incorrect

    $quiz_options[“instant_mark”] = “yes”; 

 

    // 4. Stop users from changing their answers

    $quiz_options[“stop_change”] = “yes”; 

 

    // 5. Always Show Incorrect Answer Text

    $quiz_options[“always_show_extra”] = “yes”; 

 

    return $quiz_options;

}

 

June 11, 2026 at 6:46amKalluu

Hi Kalluu, 2000 quizzes!
You can see better examples in this previous support thread

How to import CSV quizzes with the same custom settings?

The main issue I see is that you are using the wrong filter. You’re better off using hdq_before_quiz_data

11 June 2026 — 13:23support admin Dylan

Respond to thread

This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help
.

Submit