LLMS_Question_Types::get_model()

Retrieve question type model defaults


Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.question.types.php

	public static function get_model() {

		return apply_filters(
			'llms_question_type_model_defaults',
			array(
				'choices'         => array(
					'selectable' => true,
					'markers'    => range( 'A', 'Z' ),
					'max'        => 26,
					'min'        => 2,
					'multi'      => true,
					'type'       => 'text',
				),
				'clarifications'  => true,
				'description'     => true,
				'default_choices' => array(),
				'grading'         => 'auto',
				'group'           => array(
					'order' => 20,
					'name'  => __( 'Other', 'lifterlms' ),
				),
				'icon'            => 'question-circle',
				'id'              => 'generic',
				'image'           => true,
				'name'            => esc_html__( 'Question', 'lifterlms' ),
				'placeholder'     => esc_attr__( 'Enter your question...', 'lifterlms' ),
				'points'          => true,
				'random_lock'     => false,
				'video'           => true,
			)
		);

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.30.3 Fixed typo in icon name.
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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