dozent_complete_content( int $content_id, int $user_id, string $scope = 'complete' )

Complete any course content, useful for Complete lecture | Assignments | Quiz


Parameters

$user_id

(int) (Required)

$content_id

(int) (Required)

$scope

(string) (Optional) Scope of completion

Default value: 'complete'


Return

(int)


Source

File: includes/core-functions.php

	function dozent_complete_content( $content_id = 0, $user_id = 0, $scope = 'complete' ) {
		$user_data   = dozent_user_data( $user_id );
		return $user_data->complete_course_content( $content_id, $scope );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.