LLMS_Lesson::is_complete( int $user_id = null )
Determine if the lesson has been completed by a specific user
Description Description
Parameters Parameters
- $user_id
-
(Optional) WP_User ID of a student. Default
null
. If not provided, or a falsy is provided, will fall back on the current user id.Default value: null
Return Return
(bool)
Source Source
File: includes/models/model.llms.lesson.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Refactored to utilize LLMS_Student->is_complete(). Added $user_id param. |
1.0.0 | Introduced. |