dozent_video( null $post = null, bool $echo = true )

Render Video attached to course or lecture


Description

See also


Parameters

$post

(null) (Optional)

Default value: null

$echo

(bool) (Optional)

Default value: true


Return

(false|mixed|void)


Source

File: includes/template-functions.php

	function dozent_video( $post = null, $echo = true ) {
		$video = dozent_has_video( $post );

		if ( ! $video ) {
			return false;
		}

		$output = dozent_load_template( 'single/video', compact( 'video' ), false );

		if ( $echo ) {
			echo $output;
		}

		return $output;
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.