dozent_get_course_level( int $course_ID )

Return the course level


Description

This function return the course level instead of print.

Example usage:

dozent_get_course_level();

Parameters

$course_ID

(int) (Required)


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_get_course_level( $course_ID = 0 ) {
		$course_ID = dozent_get_post_id( $course_ID );

		$level = get_post_meta( $course_ID, '_difficulty_level', true );

		if ( $level ) {
			$level_text = dozent_course_levels( $level );
		} else {
			$level_text = '';
		}

		return apply_filters( 'dozent_get_course_level', $level_text, $level, $course_ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.