woocommerce_orders_cot_and_posts_sync_step_size хук-фильтрWC 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.

Использование

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 $self::ORDERS_SYNC_BATCH_SIZE Default value for the count.
 *
 * @return int
 */
function wp_kama_woocommerce_orders_cot_and_posts_sync_step_size_filter( $self::ORDERS_SYNC_BATCH_SIZE ){

	// filter...
	return $self::ORDERS_SYNC_BATCH_SIZE;
}
$self::ORDERS_SYNC_BATCH_SIZE(int)
Default value for the count.

Список изменений

С версии 6.6.0 Введена.

Где вызывается хук

DataSynchronizer::sync_next_batch()
woocommerce_orders_cot_and_posts_sync_step_size
woocommerce/src/Internal/DataStores/Orders/DataSynchronizer.php 373
$batch_size = apply_filters( 'woocommerce_orders_cot_and_posts_sync_step_size', self::ORDERS_SYNC_BATCH_SIZE );

Где используется хук в WooCommerce

Использование не найдено.