Filter hook 'rest_oembed_ttl'
in WP Core File wp-includes/class-wp-oembed-controller.php at line 240
Description
Filters the oEmbed TTL value (time to live). Similar to the {@see 'oembed_ttl'} filter, but for the REST API oEmbed proxy endpoint.
Occurrences
Filename |
Line Number |
wp-includes/class-wp-oembed-controller.php |
240 |
Parameters
Type |
Name |
Description |
int |
$time |
Time to live (in seconds). |
string |
$url |
The attempted embed URL. |
array |
$args |
An array of embed request arguments. |
PHP Doc
/**
* Filters the oEmbed TTL value (time to live).
*
* Similar to the {@see 'oembed_ttl'} filter, but for the REST API
* oEmbed proxy endpoint.
*
* @since 4.8.0
*
* @param int $time Time to live (in seconds).
* @param string $url The attempted embed URL.
* @param array $args An array of embed request arguments.
*/