wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_url_details_cache_expiration › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'rest_url_details_cache_expiration', $ttl )
Parameters:
  • (int) $ttl The time until cache expiration in seconds.
    Required: Yes
Defined at:
Codex:

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.





Source

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