过滤oEmbed TTL值(生存时间)。
原型
apply_filters( 'oembed_ttl', int $time, string $url, array $attr, int $post_ID )
参数
$time
(int)
生存时间(以秒为单位)。
$url
(string)
尝试嵌入URL。
$attr
(array)
一组短代码属性。
$post_ID
(int)
帖子ID。
源文件
路径:wp-includes/class-wp-embed.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/oembed_ttl/