ld_video_provider

apply_filters( 'ld_video_provider',  string $video_provider,  array $settings )

Filter to override unkown video provider.


Description #


Parameters #

$video_provider

(string) Video provider to use. May be empty.

$settings

(array) Array of Video Progression Settings.


Source #

File: includes/course/ld-course-video.php


Examples #

 <?php
/**
 * Example usage for ld_video_provider filter.
 */
add_filter(
	'ld_video_provider',
	function( $video_provider, $settings ) {
		// May add any custom logic using $video_provider, $settings.

		// Always return $video_provider.
		return $video_provider;
	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
2.4.0 Introduced.