do_action( “set_transient_{$transient}”, mixed $value, int $expiration, string $transient )

Fires after the value for a specific transient has been set.

Description

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

Parameters

$valuemixed
Transient value.
$expirationint
Time until expiration in seconds.
$transientstring
The name of the transient.

Source

do_action( "set_transient_{$transient}", $value, $expiration, $transient );

Changelog

VersionDescription
4.4.0The $transient parameter was added.
3.6.0The $value and $expiration parameters were added.
3.0.0Introduced.

User Contributed Notes

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