apply_filters( 'rest_url_details_cache_expiration', int $ttl )

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.


Top ↑

Parameters

$ttl int
The time until cache expiration in seconds.

Top ↑

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.9.0 Introduced.

Top ↑

User Contributed Notes

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