WordPress at a glance
filter is not described

pre_set_transient_(transient) filter-hook . WP 3.0.0

Filters a specific transient before its value is set.

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


add_filter( 'pre_set_transient_(transient)', 'filter_function_name_5413', 10, 3 );
function filter_function_name_5413( $value, $expiration, $transient ){
	// filter...

	return $value;
New value of transient.
Time until expiration in seconds.
Transient name.


  • Since 4.2.0 The $expiration parameter was added.
  • Since 4.4.0 The $transient parameter was added.

Where the hook is called

wp-includes/option.php 740
$value = apply_filters( "pre_set_transient_{$transient}", $value, $expiration, $transient );

Where the hook is used (in WP core)

Does not used.