LLMS_Student_Quizzes::delete_attempt( int $attempt_id )

Remove Student Quiz attempt by ID

Parameters Parameters


(int) (Required) Attempt ID.

Top ↑

Return Return

(boolean) Returns true on success and false on error.

Top ↑

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;


Top ↑

Changelog Changelog

Version Description
3.16.11 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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