WordPress at a glance
filter is not described

expiration_of_site_transient_(transient) filter-hook . WP 4.4.0

Filters the expiration for a site transient before its value is set.

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


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

	return $expiration;
Time until expiration in seconds. Use 0 for no expiration.
New value of site transient.
Transient name.


Since 4.4.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used

Usage not found!