woocommerce_batch_processor_watchdog_delay_seconds filter-hookWC 8.2.0

Modify the delay interval for the batch processor's watchdog events.

Usage

add_filter( 'woocommerce_batch_processor_watchdog_delay_seconds', 'wp_kama_woocommerce_batch_processor_watchdog_delay_seconds_filter' );

/**
 * Function for `woocommerce_batch_processor_watchdog_delay_seconds` filter-hook.
 * 
 * @param int $delay Time, in seconds, before the watchdog process will run.
 *
 * @return int
 */
function wp_kama_woocommerce_batch_processor_watchdog_delay_seconds_filter( $delay ){

	// filter...
	return $delay;
}
$delay(int)
Time, in seconds, before the watchdog process will run.
Default: 3600 (1 hour)

Changelog

Since 8.2.0 Introduced.

Where the hook is called

BatchProcessingController::schedule_watchdog_action()
woocommerce_batch_processor_watchdog_delay_seconds
woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php 111
$time += apply_filters( 'woocommerce_batch_processor_watchdog_delay_seconds', HOUR_IN_SECONDS );

Where the hook is used in WooCommerce

Usage not found.