W3cubDocs

/WordPress

apply_filters( "expiration_of_transient_{$transient}", int $expiration, mixed $value, string $transient )

Filters the expiration for a transient before its value is set.

Description

The dynamic portion of the hook name, $transient, refers to the transient name.

Parameters

$expiration

(int) Time until expiration in seconds. Use 0 for no expiration.

$value

(mixed) New value of transient.

$transient

(string) Transient name.

Source

File: wp-includes/option.php

View on Trac

Changelog

Version Description
4.4.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/expiration_of_transient_transient