oembed_ttl filter-hook . WP 4.0.0
Filters the oEmbed TTL value (time to live).
Usage
add_filter( 'oembed_ttl', 'filter_function_name_612', 10, 4 ); function filter_function_name_612( $time, $url, $attr, $post_ID ){ // filter... return $time; }
- $time(int)
- Time to live (in seconds).
- $url(string)
- The attempted embed URL.
- $attr(array)
- An array of shortcode attributes.
- $post_ID(int)
- Post ID.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-embed.php 245
$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID );