woocommerce_analytics_import_interval filter-hookWC 9.5.0

Filters the interval for the recurring batch processor.

Usage

add_filter( 'woocommerce_analytics_import_interval', 'wp_kama_woocommerce_analytics_import_interval_filter' );

/**
 * Function for `woocommerce_analytics_import_interval` filter-hook.
 * 
 * @param int $interval Interval in seconds.
 *
 * @return int
 */
function wp_kama_woocommerce_analytics_import_interval_filter( $interval ){

	// filter...
	return $interval;
}
$interval(int)
Interval in seconds.
Default: 12 hours

Changelog

Since 9.5.0 Introduced.

Where the hook is called

OrdersScheduler::schedule_recurring_batch_processor()
woocommerce_analytics_import_interval
woocommerce/src/Internal/Admin/Schedulers/OrdersScheduler.php 377
$interval = apply_filters( 'woocommerce_analytics_import_interval', 12 * HOUR_IN_SECONDS );

Where the hook is used in WooCommerce

Usage not found.