LLMS_Notification_Controller_Quiz_Graded::action_callback( int $student_id = null, array $quiz_id = null, obj $attempt = 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

$attempt

(obj) (Optional) LLMS_Quiz_Attempt

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

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

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

		$this->user_id = $student_id;
		$this->post_id = $attempt->get( 'id' );

		$this->send();

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.24.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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