woocommerce_analytics_regenerate_batch_size filter-hookWC 1.0

Filter the batch size for regenerating a report table.

Usage

add_filter( 'woocommerce_analytics_regenerate_batch_size', 'wp_kama_woocommerce_analytics_regenerate_batch_size_filter', 10, 2 );

/**
 * Function for `woocommerce_analytics_regenerate_batch_size` filter-hook.
 * 
 * @param int $batch_size Batch size.
 * @param     $action     
 *
 * @return int
 */
function wp_kama_woocommerce_analytics_regenerate_batch_size_filter( $batch_size, $action ){

	// filter...
	return $batch_size;
}
$batch_size(int)
Batch size.
$action
-

Where the hook is called

In file: /src/Admin/Schedulers/SchedulerTraits.php
woocommerce_analytics_regenerate_batch_size
woocommerce/src/Admin/Schedulers/SchedulerTraits.php 146
return apply_filters( 'woocommerce_analytics_regenerate_batch_size', $batch_size, static::$name, $action );

Where the hook is used in WooCommerce

Usage not found.