LLMS_Student_Quizzes::delete_attempt( int $attempt_id )

Remove Student Quiz attempt by ID


Description Description


Parameters Parameters

$attempt_id

(int) (Required) Attempt ID


Top ↑

Return Return

(boolean) true on success, 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->delete();

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.9.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: