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

Filters the oEmbed TTL value (time to live).

Description Description

Similar to the ‘oembed_ttl’ filter, but for the REST API oEmbed proxy endpoint.

Top ↑

Parameters Parameters


(int) Time to live (in seconds).


(string) The attempted embed URL.


(array) An array of embed request arguments.

Top ↑

Source Source

File: wp-includes/class-wp-oembed-controller.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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