dozent_get_video_streaming_url( null|int|WP_Post $post = null )

Get Lecture Video Streaming URL


Description

Example usage:

dozent_get_video_streaming_url();

See also


Parameters

$post

(null|int|WP_Post) (Optional) Post AKA Lecture

Default value: null


Return

(mixed|void)


Source

File: includes/course-functions.php

	function dozent_get_video_streaming_url( $post = null ) {
		$post = get_post( $post );

		if ( $post->post_type === 'dozent_lecture' ) {
			$video_url = trailingslashit( home_url() ) . 'video-url/' . $post->post_name;
		} else {
			$video_url = dozent_get_video( $post->ID, 'url' );
		}

		/**
		 * Filter video streaming URL
		 *
		 * @since DozentLMS 1.0.0
		 *
		 * @param string $video_url Video URL
		 * @param WP_Post $post Post object
		 */

		return apply_filters( 'dozent_get_video_streaming_url', $video_url, $post );
	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.