Automattic\WooCommerce\Internal\ProductFeed\Feed
ProductWalker::set_batch_size
Set the number of products to iterate through per batch.
Method of the class: ProductWalker{}
No Hooks.
Returns
self.
Usage
$ProductWalker = new ProductWalker(); $ProductWalker->set_batch_size( $batch_size ): self;
- $batch_size(int) (required)
- The number of products to iterate through per batch.
Changelog
| Since 10.5.0 | Introduced. |
ProductWalker::set_batch_size() ProductWalker::set batch size code WC 10.8.1
public function set_batch_size( int $batch_size ): self {
if ( $batch_size < 1 ) {
$batch_size = 1;
}
$this->per_page = $batch_size;
return $this;
}