A WordPress-centric search engine for devs and theme authors



rest_oembed_ttl ›

Since4.8.0
Deprecatedn/a
apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args )
Parameters: (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
Defined at:
Codex:

Filters the oEmbed TTL value (time to live).

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





Source

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