Wordpress 钩子:oembed_response_data
文章目录
过滤oEmbed响应数据。
原型
apply_filters( 'oembed_response_data', array $data, WP_Post $post, int $width, int $height )
参数
$data
(array)
响应数据。
$post
(WP_Post)
帖子对象。
$width
(int)
要求的宽度。
$height
(int)
计算出的高度。
源文件
路径:wp-includes/embed.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/oembed_response_data/
文章作者 iBllex
上次更新 2019-02-15