woocommerce_orders_cot_and_posts_sync_step_size
Filter to customize the count of orders that will be synchronized in each step of the custom orders table to/from posts table synchronization process.
Usage
add_filter( 'woocommerce_orders_cot_and_posts_sync_step_size', 'wp_kama_woocommerce_orders_cot_and_posts_sync_step_size_filter' ); /** * Function for `woocommerce_orders_cot_and_posts_sync_step_size` filter-hook. * * @param int $batch_size Default value for the count. * * @return int */ function wp_kama_woocommerce_orders_cot_and_posts_sync_step_size_filter( $batch_size ){ // filter... return $batch_size; }
- $batch_size(int)
- Default value for the count.
Changelog
Since 6.6.0 | Introduced. |
Where the hook is called
woocommerce_orders_cot_and_posts_sync_step_size
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 883
return apply_filters( 'woocommerce_orders_cot_and_posts_sync_step_size', $batch_size );