dozent_get_course_categories( int $course_id )

Get course categories by course id


Parameters

$course_id

(int) (Required) Course ID


Return

(false|WP_Error|WP_Term[])


Source

File: includes/template-functions.php

	function dozent_get_course_categories( $course_id = 0 ) {
		$course_id = dozent_get_post_id( $course_id );

		return get_the_terms( $course_id, 'course_category' );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.