set_site_transient_(transient) хук-событиеWP 3.0.0

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

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

Использование

add_action( 'set_site_transient_(transient)', 'wp_kama_set_site_transient_action', 10, 3 );

/**
 * Function for `set_site_transient_(transient)` action-hook.
 * 
 * @param mixed  $value      Site transient value.
 * @param int    $expiration Time until expiration in seconds.
 * @param string $transient  Transient name.
 *
 * @return void
 */
function wp_kama_set_site_transient_action( $value, $expiration, $transient ){

	// action...
}
$value(разное)
Site transient value.
$expiration(int)
Time until expiration in seconds.
$transient(строка)
Transient name.

Список изменений

С версии 3.0.0 Введена.
С версии 4.4.0 The $transient parameter was added

Где вызывается хук

set_site_transient()
set_site_transient_(transient)
wp-includes/option.php 2068
do_action( "set_site_transient_{$transient}", $value, $expiration, $transient );

Где используется хук в WordPress

Использование не найдено.