woocommerce_attribute_lookup_regeneration_step_size filter-hookWC 6.3

Filter to alter the count of products that will be processed in each step of the product attributes lookup table regeneration process.

Usage

add_filter( 'woocommerce_attribute_lookup_regeneration_step_size', 'wp_kama_woocommerce_attribute_lookup_regeneration_step_size_filter' );

/**
 * Function for `woocommerce_attribute_lookup_regeneration_step_size` filter-hook.
 * 
 * @param int $count Default processing step size.
 *
 * @return int
 */
function wp_kama_woocommerce_attribute_lookup_regeneration_step_size_filter( $count ){

	// filter...
	return $count;
}
$count(int)
Default processing step size.

Changelog

Since 6.3 Introduced.

Where the hook is called

DataRegenerator::do_regeneration_step()
woocommerce_attribute_lookup_regeneration_step_size
woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php 202
$products_per_generation_step = apply_filters( 'woocommerce_attribute_lookup_regeneration_step_size', self::PRODUCTS_PER_GENERATION_STEP );

Where the hook is used in WooCommerce

Usage not found.