llms_is_complete( int $user_id, int $object_id, int $object_type = 'course' )

Checks if the given object is complete for the given student


Description Description

See also See also


Top ↑

Parameters Parameters

$user_id

(int) (Required) WP User ID of the user

$object_id

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

$object_type

(int) (Optional) Type, either Course, Section, or Lesson

Default value: 'course'


Top ↑

Return Return

(bool) true if complete, false otherwise


Top ↑

Source Source

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

function llms_is_complete( $user_id, $object_id, $object_type = 'course' ) {
	$s = new LLMS_Student( $user_id );
	return $s->is_complete( $object_id, $object_type );
}

Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: