rest_oembed_ttl

Advertisement

Summery Summery

Filters the oEmbed TTL value (time to live).

Syntax Syntax

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

Description Description

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

Parameters Parameters

$time

(int) Time to live (in seconds).

$url

(string) The attempted embed URL.

$args

(array) An array of embed request arguments.

Source Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.8.0 Introduced.

Advertisement

Leave a Reply