LLMS_Notification_Controller_Lesson_Complete::action_callback( int $student_id = null, int $lesson_id = null )

Callback function called when a lesson is completed by a student


Parameters Parameters

$student_id

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

Default value: null

$lesson_id

(int) (Optional) WP Post ID of a LifterLMS Lesson

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.lesson.complete.php

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

		$this->user_id = $student_id;
		$this->post_id = $lesson_id;
		$this->lesson  = llms_get_post( $lesson_id );
		$this->course  = $this->lesson->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.