LLMS_Notification_Controller_Quiz_Failed::action_callback( int $student_id = null, array $quiz_id = null )

Callback function called when a quiz is failed by a student


Parameters Parameters

$student_id

(int) (Optional) WP User ID of a LifterLMS Student

Default value: null

$quiz_id

(array) (Optional) WP Post ID of a LifterLMS quiz

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.quiz.failed.php

	public function action_callback( $student_id = null, $quiz_id = null ) {

		$this->user_id = $student_id;
		$this->post_id = $quiz_id;
		$this->quiz    = llms_get_post( $quiz_id );
		if ( ! $this->quiz ) {
			return;
		}
		$this->course = $this->quiz->get_course();

		$this->send();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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