pre_set_site_transient_(transient) filter-hookWP 3.0.0

Filters the value of a specific site transient before it is set.

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


add_filter( 'pre_set_site_transient_(transient)', 'wp_kama_pre_set_site_transient_filter', 10, 2 );

 * Function for `pre_set_site_transient_(transient)` filter-hook.
 * @param mixed  $value     New value of site transient.
 * @param string $transient Transient name.
 * @return mixed
function wp_kama_pre_set_site_transient_filter( $value, $transient ){

	// filter...
	return $value;
New value of site transient.
Transient name.


Since 3.0.0 Introduced.
Since 4.4.0 The $transient parameter was added.

Where the hook is called

wp-includes/option.php 2053
$value = apply_filters( "pre_set_site_transient_{$transient}", $value, $transient );

Where the hook is used in WordPress

Usage not found.