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

In this article

Filters the expiration for a site 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 site transient.
$transientstring
Transient name.

Source

$expiration = apply_filters( "expiration_of_site_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.