Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog
AsyncGenerator::get_effective_chunk_size
Returns the effective chunk size (products per action) currently in use for a feed.
Метод класса: AsyncGenerator{}
Хуков нет.
Возвращает
int. The effective chunk size, defaulting to the largest configured step.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_effective_chunk_size( $option_key ): int;
- $option_key(строка) (обязательный)
- The option key for the feed generation status.
Код AsyncGenerator::get_effective_chunk_size() AsyncGenerator::get effective chunk size WC 11.2.2
private function get_effective_chunk_size( string $option_key ): int {
$chunk_size = (int) get_option( $this->get_chunk_size_option_key( $option_key ), self::CHUNK_SIZE_STEPS[0] );
return $chunk_size > 0 ? $chunk_size : self::CHUNK_SIZE_STEPS[0];
}