Browse: Home / Functions /


learndash_add_new_essay_response( string $response,  WpProQuiz_Model_Question $this_question,  WpProQuiz_Model_Quiz $quiz,  array|null $post_data = null )

Adds a new essay response.

Description #

Called from LD_QuizPro::checkAnswers() via AJAX.

Parameters #


(string) (Required) Essay response.


(WpProQuiz_Model_Question) (Required) Pro quiz question object.


(WpProQuiz_Model_Quiz) (Required) Pro Quiz object.


(array|null) (Optional) Quiz information and answers.

Default value: null

Return #

(boolean|int|WP_Error) Returns essay ID or WP_Error if the essay could not be created.

Source #

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

Changelog #

Version Description
2.2.0 Introduced.