dozent_get_total_lectures( int $course_ID )

Get total lectures related by the course


Description

This function returns total lectures count in number in a course

Example usage:

dozent_get_total_lectures();
dozent_get_total_lectures( $course_ID );

See also


Parameters

$course_ID

(int) (Required) Course ID


Return

(mixed|void)


Source

File: includes/core-functions.php

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

		$total_lectures = (int) get_post_meta( $course_ID, '_total_lectures', true );

		/**
		 * Filter the total lectures return by dozent_get_total_lectures();
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @see dozent_get_total_lectures()
		 *
		 * @param int $total_lectures
		 * @param int $course_ID
		 */

		return apply_filters( 'dozent_get_total_lectures', $total_lectures, $course_ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.