LLMS_Notification_Controller_Section_Complete::action_callback( int $student_id = null, int $section_id = null )

Callback function called when a section is completed by a student


Parameters Parameters

$student_id

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

Default value: null

$section_id

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

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

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

57
58
59
60
61
62
63
64
65
66
public function action_callback( $student_id = null, $section_id = null ) {
 
    $this->user_id = $student_id;
    $this->post_id = $section_id;
    $this->section = llms_get_post( $section_id );
    $this->course  = $this->section->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.