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