woocommerce_batch_processor_watchdog_delay_seconds
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
woocommerce_batch_processor_watchdog_delay_seconds
woocommerce/src/Internal/BatchProcessing/BatchProcessingController.php 123
$time += apply_filters( 'woocommerce_batch_processor_watchdog_delay_seconds', HOUR_IN_SECONDS );