expiration_of_transient_{$transient}

expiration_of_transient_{$transient}

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

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

  • /wp-includes/option.php line 787
    	 * @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() ) {
    		$result = wp_cache_set( $transient, $value, 'transient', $expiration );
    	} else {
    		$transient_timeout = '_transient_timeout_' . $transient;
    		$transient_option  = '_transient_' . $transient;