expiration_of_transient_{$transient} WordPress Filter Hook
The expiration_of_transient_{$transient} hook is called when a transient is about to expire. You can use this hook to perform any necessary cleanup or other actions before the transient expires.
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
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |