LLMS_Quiz_Attempt::get_questions( boolean $cache = true )

Get array of serialized questions


Parameters Parameters

$cache

(boolean) (Optional) If true, save data to to the object for future gets. Default true.

Default value: true


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/models/model.llms.quiz.attempt.php

	 * @return array
	 */
	public function get_questions( $cache = true ) {

		$questions = $this->get( 'questions', $cache );
		if ( $questions ) {
			return unserialize( $questions );
		}
		return array();


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.