LLMS_Question::get( string $key, boolean $raw = false )


Parameters Parameters


(string) (Required) The property key.


(boolean) (Optional) Whether or not we need to get the raw value.

Default value: false

Top ↑

Return Return


Top ↑

Source Source

File: includes/models/model.llms.question.php

	public function get( $key, $raw = false ) {

		$value = parent::get( $key, $raw );

		// When getting the 'not raw' value, make sure we always return a valid question type.
		if ( ! $raw && ! $value && 'question_type' === $key ) {
			$value = 'choice';

		return $value;


Top ↑

Changelog Changelog

Version Description
3.38.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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