WordPress at a glance
filter is not described

rest_oembed_ttl filter-hook . WP 4.8.0

Filters the oEmbed TTL value (time to live).

Similar to the 'oembed_ttl' filter, but for the REST API oEmbed proxy endpoint.

Usage

add_filter( 'rest_oembed_ttl', 'filter_function_name_5453', 10, 3 );
function filter_function_name_5453( $time, $url, $args ){
	// filter...

	return $time;
}
$time(int)
Time to live (in seconds).
$url(string)
The attempted embed URL.
$args(array)
An array of embed request arguments.

Where the hook is called

WP_oEmbed_Controller::get_proxy_item()
rest_oembed_ttl
wp-includes/class-wp-oembed-controller.php 204
$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );

Where the hook is used (in WP core)

Does not used.