wp_audio_shortcode_library filter-hookWP 3.6.0

Filters the media library used for the audio shortcode.

Usage

add_filter( 'wp_audio_shortcode_library', 'wp_kama_audio_shortcode_library_filter' );

/**
 * Function for `wp_audio_shortcode_library` filter-hook.
 * 
 * @param string $library Media library used for the audio shortcode.
 *
 * @return string
 */
function wp_kama_audio_shortcode_library_filter( $library ){

	// filter...
	return $library;
}
$library(string)
Media library used for the audio shortcode.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_audio_shortcode()
wp_audio_shortcode_library
WP_Widget_Media_Audio::enqueue_preview_scripts()
wp_audio_shortcode_library
wp-includes/media.php 3049
$library = apply_filters( 'wp_audio_shortcode_library', 'mediaelement' );
wp-includes/widgets/class-wp-widget-media-audio.php 135
if ( 'mediaelement' === apply_filters( 'wp_audio_shortcode_library', 'mediaelement' ) ) {

Where the hook is used in WordPress

Usage not found.