LLMS_Quiz_Attempt::get_first_question()
Retrieve the first question for the attempt
Return Return
(int|false)
Source Source
File: includes/models/model.llms.quiz.attempt.php
364 365 366 367 368 369 370 371 372 373 374 | 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 | |
3.16.0 | Introduced. |