Browse: Home / Hooks /

learndash_responsive_video_domains

apply_filters( 'learndash_responsive_video_domains',  array $video_domains )

Filters responsive video domains. Used to modify the supported domains for the responsive video.


Description #


Parameters #

$video_domains

(array) Array of video domains to support responsive video.


Source #

File: themes/ld30/includes/helpers.php


Examples #

Note: Extended code example below not guaranteed, you may need to consult with a developer

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

		// Always return $video_domains.
		return $video_domains;
	}
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.