WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_oembed_ttl

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/class-wp-oembed-controller.php apply_filters 240 /**
* Filters the oEmbed TTL value (time to live).
*
* Similar to the {@see 'oembed_ttl'} filter, but for the REST API
* oEmbed proxy endpoint.
*
* @since 4.8.0
*
* @param int $time Time to live (in seconds).
* @param string $url The attempted embed URL.
* @param array $args An array of embed request arguments.
*/

Hook Parameters

Parameter Type Name Description
int $time Time to live (in seconds).
string $url The attempted embed URL.
array $args An array of embed request arguments.