learndash_update_submitted_essay_data

learndash_update_submitted_essay_data( int $quiz_id,  int $question_id,  WP_Post $essay,  array $submitted_essay )

Updates the user’s submitted essay data.


Description #

Finds the essay in 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.

$essay

(WP_Post) (Required) The WP_Post essay object.

$submitted_essay

(array) (Required) Submitted essay data.


Source #

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


Changelog #

Changelog
Version Description
2.2.0 Introduced.