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

Top ↑

Parameters Parameters


(int) (Required) WP Post ID of the lesson, section, course, or track


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


(string) (Optional) String describing the reason for marking complete

Default value: 'unspecified'

Top ↑

Return Return


Top ↑

Source Source

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

	public function mark_complete( $object_id, $object_type, $trigger = 'unspecified' ) {

		// Short circuit if it's already completed.
		if ( $this->is_complete( $object_id, $object_type ) ) {
			return true;

		return $this->update_completion_status( 'complete', $object_id, $object_type, $trigger );


Top ↑

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.