woocommerce_delete_expired_transient_files_interval filter-hookWC 8.5.0

Filter to alter the interval between the actions that delete expired transient files.

Usage

add_filter( 'woocommerce_delete_expired_transient_files_interval', 'wp_kama_woocommerce_delete_expired_transient_files_interval_filter' );

/**
 * Function for `woocommerce_delete_expired_transient_files_interval` filter-hook.
 * 
 * @param int $interval The default time before the next action run, in seconds.
 *
 * @return int
 */
function wp_kama_woocommerce_delete_expired_transient_files_interval_filter( $interval ){

	// filter...
	return $interval;
}
$interval(int)
The default time before the next action run, in seconds.

Changelog

Since 8.5.0 Introduced.

Where the hook is called

TransientFilesEngine::handle_expired_files_cleanup_action()
woocommerce_delete_expired_transient_files_interval
woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php 370
$new_interval = apply_filters( 'woocommerce_delete_expired_transient_files_interval', DAY_IN_SECONDS );

Where the hook is used in WooCommerce

Usage not found.