Uma área de pesquisa sobre o WordPress para devs e autores do tema



oembed_ttl ›

Desde4.0.0
Obsoleton/a
apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID )
Parâmetros: (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
Definido em:
Codex:

Filters the oEmbed TTL value (time to live).





Fonte

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