LLMS_Student::mark_complete( int $object_id, string $object_type, string $trigger = 'unspecified' )
Mark a lesson, section, course, or track complete for the given user
Description Description
See also See also
- llms_mark_complete(): calls this function without having to instantiate the LLMS_Student class first
Parameters Parameters
- $object_id
-
(int) (Required) WP Post ID of the lesson, section, course, or track
- $object_type
-
(string) (Required) object type [lesson|section|course|track]
- $trigger
-
(string) (Optional) String describing the reason for marking complete
Default value: 'unspecified'
Return Return
(boolean)
Source Source
File: includes/models/model.llms.student.php
} /** * Determine if a student is enrolled in a Course or Membership. * * @see llms_is_user_enrolled() * * @param int|array $product_ids WP Post ID of a Course, Section, Lesson, or Membership or array of multiple IDs. * @param string $relation Comparator for enrollment check. * All = user must be enrolled in all $product_ids.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.3.1 | Introduced. |