wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_url_details_cache_expiration › Hooks de Filtros WordPress

Desde5.9.0
Obsoleton/a
apply_filters( 'rest_url_details_cache_expiration', $ttl )
Parâmetros:
  • (int) $ttl The time until cache expiration in seconds.
    Required: Yes
Definido em:
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.





Fonte

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