On this page
apply_filters( 'rest_oembed_ttl', int $time, string $url, array $args )
Filters the oEmbed TTL value (time to live).
Description
Similar to the ‘oembed_ttl’ filter, but for the REST API oEmbed proxy endpoint.
Parameters
$timeint-
Time to live (in seconds).
$urlstring-
The attempted embed URL.
$argsarray-
An array of embed request arguments.
Source
File: wp-includes/class-wp-oembed-controller.php. View all references
$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );
Related
Used By
| Used By | Description |
|---|---|
| WP_oEmbed_Controller::get_proxy_item() wp-includes/class-wp-oembed-controller.php | Callback for the proxy API endpoint. |
Changelog
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_oembed_ttl