learndash_get_submitted_essay_data

learndash_get_submitted_essay_data( int $quiz_id,  int $question_id,  WP_Post $essay )

Gets the essay data for this particular submission


Description #

Loop through all the quizzes and return the quiz that matches as soon as it’s found


Parameters #

$quiz_id

(int) (Required) Quiz ID.

$question_id

(int) (Required) Question ID.

$essay

(WP_Post) (Required) The WP_Post essay object.


Return #

(mixed) The submitted essay data.


Source #

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


Changelog #

Changelog
Version Description
2.2.0 Introduced.