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
$expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient );
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.