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
Return Return
(void)
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();
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.24.0 | Introduced. |