oembed_result
apply_filters( ‘oembed_result’, string|false $data , string $url , array $args )
过滤器::过滤oEmbed提供程序返回的HTML。
Filter Hook: Filters the HTML returned by the oEmbed provider.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$data | (string | false) | 返回的oEmbed HTML(如果不安全,则为false)。 |
$url | (string) | 要嵌入的内容的URL。 |
$args | (array) | 参数,通常从快捷方式传递。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.9.0 | wp-includes/class-wp-oembed.php:415 | 2 | 0 |
笔记(Notes)
如果您想知道为什么此过滤器不适合您:
oembed_result 为WP2原创文章,链接:https://www.wp2.cn/hook/oembed_result/