LLMS_Controller_Lesson_Progression::quiz_maybe_prevent_lesson_completion( bool $allow_completion, int $user_id, int $lesson_id, string $trigger, array $args )
Before a lesson is marked as complete, check if all the lesson’s quiz requirements are met
Description Description
Parameters Parameters
- $allow_completion
-
(Required) Whether or not to allow completion (true by default, false if something else has already prevented).
- $user_id
-
(Required) WP User ID of the student completing the lesson.
- $lesson_id
-
(Required) WP Post ID of the lesson to be completed.
- $trigger
-
(Required) Text string to record the reason why the lesson is being completed.
- $args
-
(Optional) additional arguments from the triggering function.
Return Return
(bool)
Source Source
File: includes/controllers/class.llms.controller.lesson.progression.php
Changelog Changelog
Version | Description |
---|---|
3.17.1 | Introduced. |