Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::get_default_batch_size()publicWC 1.0

Default batch size to use.

{} Это метод класса: DataSynchronizer{}

Возвращает

int. Default batch size.

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

$DataSynchronizer = new DataSynchronizer();
$DataSynchronizer->get_default_batch_size(): int;

Код DataSynchronizer::get_default_batch_size() WC 6.9.4

public function get_default_batch_size(): int {
	/**
	 * 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.
	 *
	 * @since 6.6.0
	 *
	 * @param int Default value for the count.
	 */
	return apply_filters( 'woocommerce_orders_cot_and_posts_sync_step_size', self::ORDERS_SYNC_BATCH_SIZE );
}