wp_video_shortcode_library

wp_video_shortcode_library

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('wp_video_shortcode_library') is found 3 times:

  • /wp-includes/media.php line 3572
    	 * @since 3.6.0
    	 *
    	 * @param string $library Media library used for the video shortcode.
    	 */
    	$library = apply_filters( 'wp_video_shortcode_library', 'mediaelement' );
    	if ( 'mediaelement' === $library && did_action( 'init' ) ) {
    		wp_enqueue_style( 'wp-mediaelement' );
    		wp_enqueue_script( 'wp-mediaelement' );
    		wp_enqueue_script( 'mediaelement-vimeo' );
    	}
    
    
  • /wp-includes/script-loader.php line 1158
    		'stretching'            => 'responsive',
    		/** This filter is documented in wp-includes/media.php */
    		'audioShortcodeLibrary' => apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ),
    		/** This filter is documented in wp-includes/media.php */
    		'videoShortcodeLibrary' => apply_filters( 'wp_video_shortcode_library', 'mediaelement' ),
    	);
    	did_action( 'init' ) && $scripts->localize(
    		'mediaelement',
    		'_wpmejsSettings',
    		/**
    		 * Filters the MediaElement configuration settings.
    
  • /wp-includes/widgets/class-wp-widget-media-video.php line 176
    	 * @since 4.8.0
    	 */
    	public function enqueue_preview_scripts() {
    		/** This filter is documented in wp-includes/media.php */
    		if ( 'mediaelement' === apply_filters( 'wp_video_shortcode_library', 'mediaelement' ) ) {
    			wp_enqueue_style( 'wp-mediaelement' );
    			wp_enqueue_script( 'mediaelement-vimeo' );
    			wp_enqueue_script( 'wp-mediaelement' );
    		}
    	}