woocommerce_orders_cot_and_posts_sync_step_size filter-hookWC 6.6.0

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

DataSynchronizer::get_default_batch_size()
woocommerce_orders_cot_and_posts_sync_step_size
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 882
return apply_filters( 'woocommerce_orders_cot_and_posts_sync_step_size', $batch_size );

Where the hook is used in WooCommerce

Usage not found.