wp_video_shortcode_library
Filters the media library used for the video shortcode.
Usage
add_filter( 'wp_video_shortcode_library', 'wp_kama_video_shortcode_library_filter' ); /** * Function for `wp_video_shortcode_library` filter-hook. * * @param string $library Media library used for the video shortcode. * * @return string */ function wp_kama_video_shortcode_library_filter( $library ){ // filter... return $library; }
- $library(string)
- Media library used for the video shortcode.
Changelog
Since 3.6.0 | Introduced. |
Where the hook is called
wp_video_shortcode_library
wp-includes/media.php 3575
$library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
wp-includes/widgets/class-wp-widget-media-video.php 176
if ( 'mediaelement' === apply_filters( 'wp_video_shortcode_library', 'mediaelement' ) ) {
wp-includes/script-loader.php 1156
'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ),