LLMS_Controller_Lesson_Progression::quiz_complete( int $student_id, int $quiz_id, obj $attempt )

Trigger lesson completion when a quiz is completed


Parameters Parameters

$student_id

(int) (Required) WP User ID.

$quiz_id

(int) (Required) WP Post ID of the quiz.

$attempt

(obj) (Required) Instance of the LLMS_Quiz_Attempt.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/controllers/class.llms.controller.lesson.progression.php

	public function quiz_complete( $student_id, $quiz_id, $attempt ) {

		do_action(
			'llms_trigger_lesson_completion',
			$student_id,
			$attempt->get( 'lesson_id' ),
			'quiz_' . $quiz_id,
			array(
				'attempt' => $attempt,
			)
		);

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.17.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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