setted_transient
Fires after the value for a transient has been set.
Использование
add_action( 'setted_transient', 'wp_kama_setted_transient_action', 10, 3 ); /** * Function for `setted_transient` action-hook. * * @param string $transient The name of the transient. * @param mixed $value Transient value. * @param int $expiration Time until expiration in seconds. * * @return void */ function wp_kama_setted_transient_action( $transient, $value, $expiration ){ // action... }
- $transient(строка)
- The name of the transient.
- $value(разное)
- Transient value.
- $expiration(int)
- Time until expiration in seconds.
Список изменений
С версии 3.0.0 | Введена. |
С версии 3.6.0 | The $value and $expiration parameters were added. |
Где вызывается хук
setted_transient
wp-includes/option.php 1574
do_action( 'setted_transient', $transient, $value, $expiration );