wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_oembed_ttl › WordPress Filter Hooks

Da4.8.0
Deprecaton/a
› apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
Parametri: (3)
  • () time Time to live (in seconds).
    Richiesto: Sì
  • () url The attempted embed URL.
    Richiesto: Sì
  • () args An array of embed request arguments.
    Richiesto: Sì
Definito a:
Codex:

Filters the oEmbed TTL value (time to live).

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




Sorgenti

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