apply_filters( 'llms_can_user_complete_lesson', bool $allowed , int $user_id , LLMS_Lesson|bool $lesson )
Filter whether a user is authorized to mark a lesson complete or incomplete.
Parameters Parameters
- $allowed
-
(bool) Whether or not the user is authorized.
- $user_id
-
(int) WP User ID of the student.
- $lesson
-
(LLMS_Lesson|bool) LLMS_Lesson instance, or
falsefor an invalid lesson.
Source Source
Changelog Changelog
| Version | Description |
|---|---|
| 10.0.7 | Introduced. |