WordPress at a glance
filter is not described

oembed_ttl filter-hook . WP 4.0.0

Filters the oEmbed TTL value (time to live).

Usage

add_filter( 'oembed_ttl', 'filter_function_name_8009', 10, 4 );
function filter_function_name_8009( $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.

Список изменений

С версии 4.0.0 Введена.

Где вызывается хук

WP_Embed::shortcode()
oembed_ttl
wp-includes/class-wp-embed.php 245
$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID );

Где используется хук в ядре WordPress

Использование не найдено.