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.

Top ↑

Source

File: wp-includes/class-wp-embed.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes

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