LLMS_Question_Types::load( array $questions )
Load core question types
Parameters Parameters
- $questions
-
(array) (Required) array of question types (probably empty).
Return Return
(void)
Source Source
File: includes/class.llms.question.types.php
public static function load( $questions ) { $model = self::get_model(); foreach ( self::get_types() as $id => $type ) { if ( is_array( $type['choices'] ) ) { $type['choices'] = wp_parse_args( $type['choices'], $model['choices'] ); } $questions[ $id ] = wp_parse_args( $type, $model ); } return $questions; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.16.0 | Introduced. |