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.
$ttlint
$cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl );
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url_details_cache_expiration