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.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/controllers/class.llms.controller.lesson.progression.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.17.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.