过滤oEmbed TTL值(生存时间)。
原型
apply_filters( 'rest_oembed_ttl', int $time, string $url, array $args )
描述
类似于’oembed_ttl’过滤器,但适用于REST API oEmbed代理端点。
参数
$time
(int)
生存时间(以秒为单位)。
$url
(string)
尝试嵌入URL。
$args
(array)
一组嵌入请求参数。
源文件
路径:wp-includes/class-wp-oembed-controller.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_oembed_ttl/