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