set_transient_(transient) action-hookWP 3.0.0

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

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

Usage

add_action( 'set_transient_(transient)', 'wp_kama_set_transient_action', 10, 3 );

/**
 * Function for `set_transient_(transient)` action-hook.
 * 
 * @param mixed  $value      Transient value.
 * @param int    $expiration Time until expiration in seconds.
 * @param string $transient  The name of the transient.
 *
 * @return void
 */
function wp_kama_set_transient_action( $value, $expiration, $transient ){

	// action...
}
$value(mixed)
Transient value.
$expiration(int)
Time until expiration in seconds.
$transient(string)
The name of the transient.

Changelog

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

Where the hook is called

set_transient()
set_transient_(transient)
wp-includes/option.php 986
do_action( "set_transient_{$transient}", $value, $expiration, $transient );

Where the hook is used in WordPress

Usage not found.