LD_QuizPro::checkAnswers( array $data )
Check answers for submitted quiz
Contents
Description #
Parameters #
- $data
-
(array) (Required) Quiz information and answers to be checked
Return #
(string) JSON representation of checked answers
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |
Related #
Uses #
Uses | Description |
---|---|
includes/settings/settings-fields/class-ld-settings-fields-wpeditor.php: the_content | |
includes/quiz/ld-quiz-pro.php: LD_QuizPro::datapos_array () |
Returns an array of MD5 Checksums on a concatenated string comprised of user id, question id, and i, where the array size is count and i is incremented from 0 for each array element |
includes/quiz/ld-quiz-pro.php: learndash_ques_free_answer_pts |
Filters answer points for free question type. |
includes/quiz/ld-quiz-pro.php: learndash_ques_free_answer_correct |
Filters whether the answer is correct or not for a free question type. |
includes/quiz/ld-quiz-pro.php: learndash_ques_multiple_answer_pts_each |
Filters the points of each answer for multiple answer type question. |
includes/quiz/ld-quiz-pro.php: learndash_ques_multiple_answer_correct_each |
Filters whether to correct the answer for a multiple answer type question or not. |
includes/quiz/ld-quiz-pro.php: learndash_ques_multiple_answer_pts_whole |
Filters points awarded for a multiple answer type question. |
includes/quiz/ld-quiz-pro.php: learndash_ques_multiple_answer_correct_whole |
Filters whether the answer to the multiple type question is correct or not. |
includes/quiz/ld-quiz-pro.php: learndash_ques_single_answer_pts |
Filters points awarded for a single answer type question. |
includes/quiz/ld-quiz-pro.php: learndash_ques_single_answer_correct |
Filters whether the answer to the single type question is correct or not. |
includes/quiz/ld-quiz-pro.php: learndash_quiz_check_answer |
Filters whether to check the answer of cloze type question. |
includes/quiz/ld-quiz-pro.php: ldadvquiz_answered |
Fires after a quiz question is answered. |
includes/quiz/ld-quiz-essays.php: learndash_add_new_essay_response () |
Adds a new essay response. |
includes/lib/wp-pro-quiz/wp-pro-quiz.php: learndash_quiz_question_cloze_answers_to_lowercase |
Filters whether to convert quiz question cloze to lowercase or not. |
includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuizMapper.php: WpProQuiz_Model_QuizMapper::__construct () | |
includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuestionMapper.php: WpProQuiz_Model_QuestionMapper::__construct () |
Used By #
Used By | Description |
---|---|
includes/quiz/ld-quiz-pro.php: LD_QuizPro::ld_adv_quiz_pro_ajax () |
Submit quiz and echo JSON representation of the checked quiz answers |