setted_transient WordPress Action Hook

The setted_transient WordPress hook is fired when a new transient is set. This hook can be used to perform any actions required when a new transient is set.

do_action( 'setted_transient', string $transient, mixed $value, int $expiration ) #

Fires after the value for a transient has been set.


Parameters

$transient

(string)The name of the transient.

$value

(mixed)Transient value.

$expiration

(int)Time until expiration in seconds.


Top ↑

Source

File: wp-includes/option.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.6.0The $value and $expiration parameters were added.
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.