LLMS_Student::delete_quiz_attempt( int $quiz_id, int $lesson_id, int $attempt = null )

Remove Student Quiz attempts


Description Description


Parameters Parameters

$quiz_id

(int) (Required) WP Post ID of a Quiz

$lesson_id

(int) (Required) WP Post ID of a lesson

$attempt

(int) (Optional) attempt number, if omitted all attempts for quiz & lesson will be deleted

Default value: null


Top ↑

Return Return

(array) updated array quiz data for the student


Top ↑

Source Source

File: includes/models/model.llms.student.php

	public function delete_quiz_attempt( $quiz_id, $lesson_id, $attempt = null ) {
		llms_deprecated_function( 'LLMS_Student->delete_quiz_attempt()', '3.9.0', 'LLMS_Student->quizzes()->delete_attempt()' );
		return $this->quizzes()->delete_attempt( $quiz_id, $lesson_id, $attempt );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.4.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: