get_oembed_response_data_rich()
get_oembed_response_data_rich( array $data, WP_Post $post, int $width, int $height )
过滤oEmbed响应数据以返回iframe嵌入代码。
Filters the oEmbed response data to return an iframe embed code.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$data | (array) | 必需 | 响应数据。 |
$post | (WP_Post) | 必需 | post对象。 |
$width | (int) | 必需 | 请求的宽度。 |
$height | (int) | 必需 | 计算出的高度。 |
返回(Return)
(array)修改后的响应数据。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.4.0 | wp-includes/embed.php:659 | 0 | 8 |
get_oembed_response_data_rich() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_oembed_response_data_rich/