wpseek.com
A WordPress-centric search engine for devs and theme authors



oembed_ttl › WordPress Filter Hooks

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 );