woocommerce_product_import_batch_size
Batch size for the product import process.
Usage
add_filter( 'woocommerce_product_import_batch_size', 'wp_kama_woocommerce_product_import_batch_size_filter' ); /** * Function for `woocommerce_product_import_batch_size` filter-hook. * * @param int $size Batch size. * * @return int */ function wp_kama_woocommerce_product_import_batch_size_filter( $size ){ // filter... return $size; }
- $size(int)
- Batch size.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
woocommerce_product_import_batch_size
woocommerce/includes/admin/importers/class-wc-product-csv-importer-controller.php 370
'lines' => apply_filters( 'woocommerce_product_import_batch_size', 30 ),