Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductWalker::set_batch_size
Set the number of products to iterate through per batch.
Метод класса: ProductWalker{}
Хуков нет.
Возвращает
self.
Использование
$ProductWalker = new ProductWalker(); $ProductWalker->set_batch_size( $batch_size ): self;
- $batch_size(int) (обязательный)
- The number of products to iterate through per batch.
Список изменений
| С версии 10.5.0 | Введена. |
Код ProductWalker::set_batch_size() ProductWalker::set batch size WC 10.5.2
public function set_batch_size( int $batch_size ): self {
if ( $batch_size < 1 ) {
$batch_size = 1;
}
$this->per_page = $batch_size;
return $this;
}