wp_embed_handler_audio хук-фильтр . WP 3.6.0
Filters the audio embed output.
Использование
add_filter( 'wp_embed_handler_audio', 'filter_function_name_2119', 10, 4 ); function filter_function_name_2119( $audio, $attr, $url, $rawattr ){ // filter... return $audio; }
- $audio(строка)
- Audio embed output.
- $attr(массив)
- An array of embed attributes.
- $url(строка)
- The original URL that was matched by the regex.
- $rawattr(массив)
- The original unmodified attributes.
Список изменений
С версии 3.6.0 | Введена. |
Где вызывается хук
wp_embed_handler_audio
wp-includes/embed.php 272
return apply_filters( 'wp_embed_handler_audio', $audio, $attr, $url, $rawattr );