LLMS_Student_Quizzes::delete_attempt( int $attempt_id )
Remove Student Quiz attempt by ID
Parameters Parameters
- $attempt_id
-
(int) (Required) Attempt ID.
Return Return
(boolean) Returns true
on success and false
on error.
Source Source
File: includes/models/model.llms.student.quizzes.php
public function delete_attempt( $attempt_id ) { $attempt = $this->get_attempt_by_id( $attempt_id ); return $attempt ? $attempt->delete() : false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.9.0 | |
3.16.11 | Introduced. |