Browse: Home / Functions /


learndash_update_quiz_data( int $quiz_id,  int $question_id,  array $updated_scoring,  WP_Post $essay )

Updates the user’s quiz data.

Description #

Finds this particular quiz attempt in the user’s meta and updates its data.

Parameters #


(int) (Required) Quiz ID.


(int) (Required) Question ID.


(array) (Required) An array of updated quiz scoring data.


(WP_Post) (Required) The WP_Post essay object.

Source #

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

Changelog #

Version Description
2.2.0 Introduced.