dozent_get_total_students_by_instructor( null $instructor = null )

Get total students count by an instructor


Description

Instructor want to know how much students enrolled to his course. By using this function, we too can know that

Example usage:

$total_students = dozent_get_total_students_by_instructor( $user );

See also


Parameters

$instructor

(null) (Optional)

Default value: null


Return

(mixed|void)


Source

File: includes/user-functions.php

	function dozent_get_total_students_by_instructor( $instructor = null ) {

		$instructor = dozent_get_the_user( $instructor );

		//TODO: need to return actual students by query database.

		return apply_filters( 'dozent_get_total_students_by_instructor', 0, $instructor );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.