expiration_of_site_transient_{$transient}

expiration_of_site_transient_{$transient}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('expiration_of_site_transient_{$transient}') is found 1 times:

  • /wp-includes/option.php line 2625
    	 * @param int    $expiration Time until expiration in seconds. Use 0 for no expiration.
    	 * @param mixed  $value      New value of site transient.
    	 * @param string $transient  Transient name.
    	 */
    	$expiration = apply_filters( "expiration_of_site_transient_{$transient}", $expiration, $value, $transient );
    
    	if ( wp_using_ext_object_cache() || wp_installing() ) {
    		$result = wp_cache_set( $transient, $value, 'site-transient', $expiration );
    	} else {
    		$transient_timeout = '_site_transient_timeout_' . $transient;
    		$option            = '_site_transient_' . $transient;