A WordPress-centric search engine for devs and theme authors



oembed_ttl ›

Since4.0.0
Deprecatedn/a
apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID )
Parameters: (4)
  • (int) $time Time to live (in seconds).
    Required: Yes
  • (string) $url The attempted embed URL.
    Required: Yes
  • (array) $attr An array of shortcode attributes.
    Required: Yes
  • (int) $post_ID Post ID.
    Required: Yes
Defined at:
Codex:

Filters the oEmbed TTL value (time to live).





Source

$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID );