过滤YoutTube嵌入输出。
原型
apply_filters( 'wp_embed_handler_youtube', string $embed, array $attr, string $url, array $rawattr )
参数
$embed
(string)
YouTube嵌入了输出。
$attr
(array)
一组嵌入属性。
$url
(string)
正则表达式匹配的原始URL。
$rawattr
(array)
原始未修改的属性。
源文件
路径:wp-includes/embed.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_embed_handler_youtube/