LLMS_Student::mark_incomplete( int $object_id, string $object_type, string $trigger = 'unspecified' )
Mark a lesson, section, course, or track incomplete for the given user Gives an “_is_complete” value of “no” for the given object
Description Description
See also See also
- llms_mark_incomplete(): 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 incomplete
Default value: 'unspecified'
Return Return
(boolean)
Source Source
File: includes/models/model.llms.student.php
foreach ( $product_ids as $id ) { $enrolled = ( 'enrolled' === strtolower( $this->get_enrollment_status( $id, $use_cache ) ) );
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |