setted_transient

Fires after the value for a transient has been set.

Description

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

Parameters (3)

0. $transient (string)
The name of the transient.
1. $value (mixed)
Transient value.
2. $expiration (int)
Time until expiration in seconds.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'setted_transient', $transient, $value, $expiration ); 
The following example is for adding a hook callback.
  1. // define the setted_transient callback 
  2. function action_setted_transient( $transient, $value, $expiration ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'setted_transient', 'action_setted_transient', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'setted_transient', 'action_setted_transient', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/wp-includes/option.php  
  1. do_action( 'setted_transient', $transient, $value, $expiration );