fetchQuestionCloze( string $answer_text, boolean $convert_to_lower = true )
Formats the quiz cloze type answers into an array to be used when comparing responses.
Description Description
The function is copied from WpProQuiz_View_FrontQuiz
class.
Parameters Parameters
- $answer_text
-
(Required) Answer text.
- $convert_to_lower
-
(Optional) Whether to convert anwser to lowercase.
Default value: true
Return Return
(array) An array of cloze question data.
Source Source
File: includes/lib/wp-pro-quiz/wp-pro-quiz.php
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |