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)
  • (int) $time Time to live (in seconds).
    Richiesto:
  • (string) $url The attempted embed URL.
    Richiesto:
  • (array) $args An array of embed request arguments.
    Richiesto:
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 );