dozent_course_loop_total_lectures( bool $echo = true )

Return total lectures from a course in the loop course card


Description

This function return a total lectures count as number within a course loop

Example usage:

dozent_course_loop_total_lectures();
dozent_course_loop_total_lectures( false );

Parameters

$echo

(bool) (Optional) Should Echo

Default value: true


Return

(mixed|void)


Source

File: includes/template-functions.php

	function dozent_course_loop_total_lectures( $echo = true ) {
		$output = apply_filters( 'dozent_course_loop_total_lectures', dozent_shortcode()->course_total_lectures() );

		if ( $echo ) {
			echo $output;
		} else {
			return $output;
		}
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.