learndash_update_quiz_data

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 #

$quiz_id

(int) (Required) Quiz ID.

$question_id

(int) (Required) Question ID.

$updated_scoring

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

$essay

(WP_Post) (Required) The WP_Post essay object.


Source #

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


Changelog #

Changelog
Version Description
2.2.0 Introduced.