dozent_get_course( $course = null )

Get course object (post object) from the loop of course | lecture | quiz | assignemnts or by given course ID | lecture ID | quiz ID | assignment ID


Description

Example usage:

$course = dozent_get_course(); //within loop
$course = dozent_get_course( $course_id );
$course = dozent_get_course( $lecture );
$course = dozent_get_course( $quiz );
$course = dozent_get_course( $assignment );

See also


Parameters

$post

(null) (Required)


Return

(DozentCourse)


Source

File: includes/course-functions.php

	function dozent_get_course( $course = null ) {
		$course = _dozent_get_course( $course );

		return Dozent()->course_factory->get_course( $course );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.