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

In this article

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

$expirationint
Time until expiration in seconds. Use 0 for no expiration.
$valuemixed
New value of transient.
$transientstring
Transient name.

Source

$expiration = apply_filters( "expiration_of_transient_{$transient}", $expiration, $value, $transient );

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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