wp_video_shortcode_library filter-hookWP 3.6.0

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()
wp_video_shortcode_library
WP_Widget_Media_Video::enqueue_preview_scripts()
wp_video_shortcode_library
wp_default_scripts()
wp_video_shortcode_library
wp-includes/media.php 3572
$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 1158
'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ),

Where the hook is used in WordPress

Usage not found.