woocommerce_analytics_refund_double_count_batch_size
Filters the maximum number of parent orders re-imported per double-counted refunds fix batch.
Usage
add_filter( 'woocommerce_analytics_refund_double_count_batch_size', 'wp_kama_woocommerce_analytics_refund_double_count_batch_size_filter' );
/**
* Function for `woocommerce_analytics_refund_double_count_batch_size` filter-hook.
*
* @param int $batch_size Maximum parent orders per batch.
*
* @return int
*/
function wp_kama_woocommerce_analytics_refund_double_count_batch_size_filter( $batch_size ){
// filter...
return $batch_size;
}
- $batch_size(int)
- Maximum parent orders per batch.
Changelog
| Since 11.2.0 | Introduced. |
Where the hook is called
woocommerce_analytics_refund_double_count_batch_size
woocommerce/src/Internal/Admin/Analytics.php 653
return max( 1, (int) apply_filters( 'woocommerce_analytics_refund_double_count_batch_size', self::REFUND_DOUBLE_COUNT_BATCH_SIZE ) );