LLMS_Notification_Controller_Quiz_Failed::action_callback( int $student_id = null, array $quiz_id = 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
Return Return
(void)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.quiz.failed.php
public function action_callback( $student_id = null, $quiz_id = null ) { $this->user_id = $student_id; $this->post_id = $quiz_id; $this->quiz = llms_get_post( $quiz_id ); if ( ! $this->quiz ) { return; } $this->course = $this->quiz->get_course(); $this->send(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |