embed_html
apply_filters( ’embed_html’, string $output , WP_Post $post , int $width , int $height )
过滤器::过滤给定文章的嵌入HTML输出。
Filter Hook: Filters the embed HTML output for a given post.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$output | (string) | 显示嵌入内容的默认iframe标记。 |
$post | (WP_Post) | 当前post对象。 |
$width | (int) | 响应的宽度。 |
$height | (int) | 响应的高度。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/embed.php:499 | 1 | 0 |
embed_html 为WP2原创文章,链接:https://www.wp2.cn/hook/embed_html/