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



rest_oembed_ttl ›

Desde4.8.0
Obsoleton/a
apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
Parâmetros: (3)
  • (int) $time Time to live (in seconds).
    Required: Yes
  • (string) $url The attempted embed URL.
    Required: Yes
  • (array) $args An array of embed request arguments.
    Required: Yes
Definido em:
Codex:

Filters the oEmbed TTL value (time to live).

Similar to the {@see 'oembed_ttl'} filter, but for the REST API oEmbed proxy endpoint.





Fonte

$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );