apply_filters( 'ld_video_provider', string $video_provider, array $settings )
Filter to override unknown video provider.
Description #
Parameters #
- $video_provider
-
(string) Video provider to use. May be empty.
- $settings
-
(array) Array of Video Progression Settings.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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 #
| Version | Description |
|---|---|
| 2.4.0 | Introduced. |