expiration_of_transient_{$transient}

expiration_of_transient_{$transient}

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

See hook in core

Displaying hooks found in version: wordpress-6.7

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

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