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 Description

Called from LD_QuizPro::checkAnswers() via AJAX.


Parameters Parameters

$response

(Required) Essay response.

$this_question

(Required) Pro quiz question object.

$quiz

(Required) Pro Quiz object.

$post_data

(Optional) Quiz information and answers.

Default value: null


Top ↑

Return Return

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


Top ↑

Source Source

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


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.