dozent_course_is_enrolled( null $course = null, null $user = null,  $force_check = false )

Determine if enrolled to a course


Description

Return true if enrolled, false for unenrolled

Example usage:

dozent_course_is_enrolled();

more description Note: if any

See also


Parameters

$course

(null) (Optional)

Default value: null

$user

(null) (Optional)

Default value: null


Return

(bool|mixed|void)


Source

File: includes/course-functions.php

	function dozent_course_is_enrolled( $course = null, $user = null, $force_check = false ) {
		if ( ! $course ) {
			return false;
		}

		$user = dozent_user_data( $user );

		return $user->is_enrolled( $course, $force_check );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.