LD_QuizPro::checkAnswers( array $data )
Check answers for submitted quiz
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 #
@package #
Uses #
Uses | Description |
---|---|
includes/quiz/ld-quiz-pro.php: learndash_quiz_format_correct_answer |
Filters whether to format the question correct answers. |
includes/quiz/ld-quiz-pro.php: learndash_quiz_question_result |
Filters a quiz question result. |
includes/quiz/ld-quiz-pro.php: learndash_quiz_check_answers_data |
Filters quiz user responses. |
includes/quiz/ld-quiz-pro.php: learndash_quiz_question_legacy_sanitize_scheme |
Filters whether use the legacy sanitize user response question. |
includes/ld-misc-functions.php: learndash_the_content () |
Utility function to control the ‘the_content’ process filtering. |
includes/classes/answer-types/class-ldlms-free-answer-type.php: learndash_quiz_question_free_answers_to_lowercase |
Filters whether to convert quiz question free to lowercase or not. |
includes/quiz/ld-quiz-pro.php: learndash_quiz_debug_log_init () |
Quiz Debug Log Init |
includes/quiz/ld-quiz-pro.php: learndash_quiz_debug_log_message () |
Quiz Debug Log Message |
includes/ld-misc-functions.php: learndash_format_course_points () |
Formats course points to the specified decimal value. |
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 a 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 close 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 () |
Constructor. |
includes/lib/wp-pro-quiz/lib/model/WpProQuiz_Model_QuestionMapper.php: WpProQuiz_Model_QuestionMapper::__construct () |
Constructor. |
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 |