llms_mark_complete( int $user_id, int $object_id, int $object_type, string $trigger = 'unspecified' )

Mark a lesson, section, course, or track as complete


Description Description

See also See also

  • LLMS_Student->mark_complete(): the class method wrapped by this function

Top ↑

Parameters Parameters

$user_id

(int) (Required) WP User ID

$object_id

(int) (Required) WP Post ID of the Lesson, Section, Track, or Course

$object_type

(int) (Required) object type [lesson|section|course|track]

$trigger

(string) (Optional) String describing the event that triggered marking the object as complete

Default value: 'unspecified'


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/functions/llms.functions.person.php

function llms_mark_complete( $user_id, $object_id, $object_type, $trigger = 'unspecified' ) {
	$student = new LLMS_Student( $user_id );
	return $student->mark_complete( $object_id, $object_type, $trigger );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.3.1 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: