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


Top ↑

Return Return

(array) An array of cloze question data.


Top ↑

Source Source

File: includes/lib/wp-pro-quiz/wp-pro-quiz.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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