1. 首页
  2. WordPress钩子手册

embed_googlevideo

apply_filters( ’embed_googlevideo’, string $html, array $matches, array $attr, string $url, array $rawattr )

过滤器::过滤Google视频嵌入输出。
Filter Hook: Filter the Google Video embed output.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$html (string) 谷歌视频HTML嵌入标记。
$matches (array) RegEx与提供的RegEx匹配。
$attr (array) 嵌入属性的数组。
$url (string) regex匹配的原始URL。
$rawattr (array) 原始未修改的属性。

源码(Source)


更新版本 源码位置 使用 被使用
2.9.0 wp-includes/embed.php:233 0 0

embed_googlevideo 为WP2原创文章,链接:https://www.wp2.cn/hook/embed_googlevideo/