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

$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'


Top ↑

Return Return

(boolean)


Top ↑

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.


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.