wp_embed_handler_video хук-фильтр . WP 3.6.0
Filters the video embed output.
Использование
add_filter( 'wp_embed_handler_video', 'filter_function_name_9600', 10, 4 ); function filter_function_name_9600( $video, $attr, $url, $rawattr ){ // filter... return $video; }
- $video(строка)
- Video 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_video
wp-includes/embed.php 317
return apply_filters( 'wp_embed_handler_video', $video, $attr, $url, $rawattr );