wp_video_shortcode_library filter-hook . WP 3.6.0
Filters the media library used for the video shortcode.
Usage
add_filter( 'wp_video_shortcode_library', 'filter_function_name_8142' ); function filter_function_name_8142( $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 3169
$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' ) ) {