apply_filters( ‘rest_oembed_ttl’, int $time, string $url, array $args )

In this article

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

$ttl = apply_filters( 'rest_oembed_ttl', DAY_IN_SECONDS, $url, $args );

Changelog

VersionDescription
4.8.0Introduced.

User Contributed Notes

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