LLMS_Quiz_Attempt::get_first_question()

Retrieve the first question for the attempt


Return Return

(int|false)


Top ↑

Source Source

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

	public function get_first_question() {

		$questions = $this->get_questions();
		if ( $questions ) {
			$first = array_shift( $questions );
			return $first['id'];
		}

		return false;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0
3.16.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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