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


Top ↑

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'


Top ↑

Return Return

(boolean)


Top ↑

Source Source

File: includes/models/model.llms.student.php

		foreach ( $product_ids as $id ) {

			$enrolled = ( 'enrolled' === strtolower( $this->get_enrollment_status( $id, $use_cache ) ) );



Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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