wpseek.com
WordPress开发者和主题制作者的搜索引擎



rest_url_details_cache_expiration › WordPress过滤钩子

Since5.9.0
已弃用n/a
apply_filters( 'rest_url_details_cache_expiration', $ttl )
参数:
  • (int) $ttl The time until cache expiration in seconds.
    Required: Yes
定义在:
文档:

Filters the cache expiration.

Can be used to adjust the time until expiration in seconds for the cache of the data retrieved for the given URL.





源码

$cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl );