rest_oembed_ttl
apply_filters( ‘rest_oembed_ttl’, int $time , string $url , array $args )
过滤器::过滤oEmbed TTL值(生存时间)。
Filter Hook: Filters the oEmbed TTL value (time to live).
说明(Description)
类似于’oembed_ttl’过滤器,但对于REST API oembed代理端点。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$time | (int) | 生存时间(秒)。 |
$url | (string) | 尝试嵌入的URL。 |
$args | (array) | 嵌入请求参数的数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.8.0 | wp-includes/class-wp-oembed-controller.php:212 | 1 | 0 |
rest_oembed_ttl 为WP2原创文章,链接:https://www.wp2.cn/functions/rest_oembed_ttl/