W3cubDocs

/WordPress

apply_filters( 'oembed_ttl', int $time, string $url, array $attr, int $post_ID )

Filters the oEmbed TTL value (time to live).

Parameters

$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.

Source

File: wp-includes/class-wp-embed.php

View on Trac

Changelog

Version Description
4.0.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/oembed_ttl