LLMS_Notification_Controller_Course_Track_Complete::action_callback( int $student_id = null, int $course_track_id = null )
Callback function called when a course track is completed by a student
Parameters Parameters
- $student_id
-
(int) (Optional) WP User ID of a LifterLMS Student
Default value: null
- $course_track_id
-
(int) (Optional) WP Post ID of a LifterLMS Course
Default value: null
Return Return
(void)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.course.track.complete.php
public function action_callback( $student_id = null, $course_track_id = null ) { $this->user_id = $student_id; $this->post_id = $course_track_id; $this->track = new LLMS_Track( $course_track_id ); $this->send(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |