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)
  • () time Time to live (in seconds).
    Required: Yes
  • () url The attempted embed URL.
    Required: Yes
  • () attr An array of shortcode attributes.
    Required: Yes
  • () 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 );