woocommerce_product_import_batch_size filter-hookWC 1.0

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

Where the hook is called

WC_Admin_Importers::do_ajax_product_import()
woocommerce_product_import_batch_size
woocommerce/includes/admin/class-wc-admin-importers.php 234
'lines'              => apply_filters( 'woocommerce_product_import_batch_size', 30 ),

Where the hook is used in WooCommerce

Usage not found.