woocommerce_analytics_import_interval

woocommerce_analytics_import_interval

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.4.3

apply_filters('woocommerce_analytics_import_interval') is found 1 times:

  • /src/Internal/Admin/Schedulers/OrdersScheduler.php line 377
    		 *
    		 * @since 9.5.0
    		 * @param int $interval Interval in seconds. Default 12 hours.
    		 */
    		$interval = apply_filters( 'woocommerce_analytics_import_interval', 12 * HOUR_IN_SECONDS );
    
    		$action_hook = self::get_action( 'process_pending_batch' );
    
    		// Schedule recurring action if not already scheduled.
    		if ( ! self::has_existing_jobs( 'process_pending_batch', array() ) ) {
    			self::queue()->schedule_recurring( time(), $interval, $action_hook, array(), static::$group );