apply_filters( ‘rest_url_details_cache_expiration’, int $ttl )

In this article

Filters the cache expiration.

Description

Can be used to adjust the time until expiration in seconds for the cache of the data retrieved for the given URL.

Parameters

$ttlint
The time until cache expiration in seconds.

Source

$cache_expiration = apply_filters( 'rest_url_details_cache_expiration', $ttl );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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