LLMS_Quiz_Attempt::get_first_question()
Retrieve the first question for the attempt
Description Description
Return Return
(int|false)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: