llms_is_complete( int $user_id, int $object_id, int $object_type = 'course' )
Checks if user is currently enrolled in cours
Contents
Description Description
See also See also
- LLMS_Student->is_complete()
Parameters Parameters
- $user_id
-
(int) (Required) WP User ID of the user.
- $object_id
-
(int) (Required) WP Post ID of a Course, Section, or Lesson.
- $object_type
-
(int) (Optional) Type, either Course, Section, or Lesson.
Default value: 'course'
Return Return
(boolean) Returns true if complete, otherwise false.
Source Source
File: includes/functions/llms.functions.person.php
* @param int $object_type Type, either Course, Section, or Lesson.
* @return bool Returns `true` if complete, otherwise `false`.
*/
function llms_is_complete( $user_id, $object_id, $object_type = 'course' ) {
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.1 | Introduced. |