LearnDash_Quiz_Migration::question( string $qno, string $question_text, string $correct, string $incorrect, string $answers_xml, string $type = 'single' )
Returns the XML representation of the question based off of the input string variables
Contents
Description #
Parameters #
- $qno
-
(string) (Required)
- $question_text
-
(string) (Required)
- $correct
-
(string) (Required)
- $incorrect
-
(string) (Required)
- $answers_xml
-
(string) (Required)
- $type
-
(string) (Optional)
Default value: 'single'
Return #
(string) XML string
Source #
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |