wp_audio_shortcode_library filter-hook . WP 3.6.0
Filters the media library used for the audio shortcode.
Usage
add_filter( 'wp_audio_shortcode_library', 'filter_function_name_9466' ); function filter_function_name_9466( $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_library
wp-includes/media.php 2920
$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' ) ) {