learndash_30_responsive_video

apply_filters( 'learndash_30_responsive_video',  string|int $resonsive_video_setting )

Filters responsive videos setting value. Override the value of responsive video set in settings.


Description #


Parameters #

$resonsive_video_setting

(string|int) Value is yes if enabled and empty string if disabled. Default is set to 0.


Source #

File: themes/ld30/includes/helpers.php


Examples #

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

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