LLMS_Question_Types::load( array $questions )

Load core question types


Parameters Parameters

$questions

(array) (Required) array of question types (probably empty).


Top ↑

Return Return

(void)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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