wp_audio_shortcode_library

wp_audio_shortcode_library

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

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_audio_shortcode_library') is found 3 times:

  • /wp-includes/media.php line 3396
    	 * @since 3.6.0
    	 *
    	 * @param string $library Media library used for the audio shortcode.
    	 */
    	$library = apply_filters( 'wp_audio_shortcode_library', 'mediaelement' );
    
    	if ( 'mediaelement' === $library && did_action( 'init' ) ) {
    		wp_enqueue_style( 'wp-mediaelement' );
    		wp_enqueue_script( 'wp-mediaelement' );
    	}
    
    
  • /wp-includes/script-loader.php line 1157
    		'pluginPath'            => includes_url( 'js/mediaelement/', 'relative' ),
    		'classPrefix'           => 'mejs-',
    		'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',
    
  • /wp-includes/widgets/class-wp-widget-media-audio.php line 135
    	 * @since 4.8.0
    	 */
    	public function enqueue_preview_scripts() {
    		/** This filter is documented in wp-includes/media.php */
    		if ( 'mediaelement' === apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ) ) {
    			wp_enqueue_style( 'wp-mediaelement' );
    			wp_enqueue_script( 'wp-mediaelement' );
    		}
    	}
    
    	/**