wp_audio_shortcode хук-фильтр . WP 3.6.0
Filters the audio shortcode output.
Использование
add_filter( 'wp_audio_shortcode', 'filter_function_name_8606', 10, 5 ); function filter_function_name_8606( $html, $atts, $audio, $post_id, $library ){ // filter... return $html; }
- $html(строка)
- Audio shortcode HTML output.
- $atts(массив)
- Array of audio shortcode attributes.
- $audio(строка)
- Audio file.
- $post_id(число)
- Post ID.
- $library(строка)
- Media library used for the audio shortcode.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
wp-includes/media.php 3000
return apply_filters( 'wp_audio_shortcode', $html, $atts, $audio, $post_id, $library );