apply_filters( ‘oembed_ttl’, int $time, string $url, array $attr, int $post_id )

In this article

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

$ttl = apply_filters( 'oembed_ttl', DAY_IN_SECONDS, $url, $attr, $post_id );

Changelog

VersionDescription
4.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.