apply_filters( 'learndash_30_responsive_video', string|int $responsive_video_setting )
Filters responsive videos setting value. Override the value of responsive video set in settings.
Description #
Parameters #
- $responsive_video_setting
-
(string|int) Value is yes if enabled and empty string if disabled. Default is set to 0.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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; } );
Changelog #
Version | Description |
---|---|
3.0.1 | Introduced. |