LLMS_Student_Quizzes::get_attempt_by_key( string $attempt_key )
Decodes an attempt string and returns the associated attempt
Parameters Parameters
- $attempt_key
-
(string) (Required) Encoded attempt key.
Return Return
(LLMS_Quiz_Attempt|false)
Source Source
File: includes/models/model.llms.student.quizzes.php
public function get_attempt_by_key( $attempt_key ) { $id = $this->parse_attempt_key( $attempt_key ); if ( ! $id ) { return false; } return $this->get_attempt_by_id( $id ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | |
3.16.0 | Introduced. |