dozent_get_total_lectures_by_section( int $section_ID )

Get total lectures related by the course


Description

Get the total lectures count within a specific section.

Example usage:

dozent_get_total_lectures_by_section();
dozent_get_total_lectures_by_section( $section_id );

See also


Parameters

$section_ID

(int) (Required) Section ID


Return

(mixed|void)


Source

File: includes/core-functions.php

	function dozent_get_total_lectures_by_section( $section_ID = 0 ) {
		$section_ID = dozent_get_post_id( $section_ID );

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

		/**
		 * Filter count of total lectures which returned by dozent_get_total_lectures_by_section() function
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @see dozent_get_total_lectures_by_section();
		 *
		 * @param int $total_lectures Total lectures
		 * @param int $section_ID Section ID
		 */

		return apply_filters( 'dozent_get_total_lectures_by_section', $total_lectures, $section_ID );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.