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 false for an invalid lesson.


Top ↑

Source Source

File: includes/functions/llms-functions-progression.php

View on GitHub



Top ↑

Changelog Changelog

Changelog
Version Description
10.0.7 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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