LearnDash_Quiz_Migration::question

LearnDash_Quiz_Migration::question( string $qno,  string $questionText,  string $correct,  string $incorrect,  string $answers_xml,  string $type = 'single' )

Returns the XML representation of the question based off of the input string variables


Description #


Parameters #

$qno

(string) (Required)

$questionText

(string) (Required)

$correct

(string) (Required)

$incorrect

(string) (Required)

$answers_xml

(string) (Required)

$type

(string) (Optional)

Default value: 'single'


Return #

(string) XML string


Source #

File: includes/quiz/ld-quiz-migration.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.