Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Student::insert_completion_postmeta( int $object_id, string $trigger = 'unspecified' )

Add student postmeta data for completion of a lesson, section, course or track


Parameters Parameters

$object_id

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

$trigger

(string) (Optional) String describing the reason for mark completion

Default value: 'unspecified'


Top ↑

Return Return

(boolean)


Top ↑

Source Source

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

			$ret = $query->has_results();

		}

		return apply_filters( 'llms_is_' . $type . '_complete', $ret, $object_id, $type, $this );

	}

	/**
	 * Determine if the student is a LifterLMS Instructor (of any kind)
	 *
	 * Can be admin, manager, instructor, assistant.
	 *


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.