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
Where the hook is called
woocommerce_product_import_batch_size
woocommerce/includes/admin/class-wc-admin-importers.php 234
'lines' => apply_filters( 'woocommerce_product_import_batch_size', 30 ),