On this page
apply_filters( 'oembed_ttl', int $time, string $url, array $attr, int $post_ID )
Filters the oEmbed TTL value (time to live).
Parameters
$timeint-
Time to live (in seconds).
$urlstring-
The attempted embed URL.
$attrarray-
An array of shortcode attributes.
$post_IDint-
Post ID.
Source
File: wp-includes/class-wp-embed.php. View all references
$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_ID );
Related
Used By
| Used By | Description |
|---|---|
| WP_Embed::shortcode() wp-includes/class-wp-embed.php | The do_shortcode() callback function. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_ttl