Browse: Home / Functions /

fetchQuestionCloze

This function has been deprecated. Use ‘learndash_question_cloze_fetch_data’ instead.

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 #

The function is copied from WpProQuiz_View_FrontQuiz class.


Parameters #

$answer_text

(string) (Required) Answer text.

$convert_to_lower

(boolean) (Optional) Whether to convert anwser to lowercase.

Default value: true


Return #

(array) An array of cloze question data.


Source #

File: includes/deprecated/3.5.0/functions.php


Changelog #

Changelog
Version Description
3.5.0 Use 'learndash_question_cloze_fetch_data' instead.
2.5.0 Introduced. This function has been deprecated. Use {@see 'learndash_question_cloze_fetch_data'} instead.