get_oembed_response_data_for_url()
get_oembed_response_data_for_url( string $url, array $args )
检索给定URL的oEmbed响应数据。
Retrieves the oEmbed response data for a given URL.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$url | (string) | 必需 | 应检查是否有发现标记的URL。 |
$args | (array) | 必需 | oEmbed远程get参数。 |
返回(Return)
(object|false)如果URL确实属于当前站点,则返回嵌入的响应数据。否则就错了。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
5.0.0 | wp-includes/embed.php:586 | 2 | 13 |
get_oembed_response_data_for_url() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_oembed_response_data_for_url/