woocommerce_attribute_lookup_regeneration_step_size
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
woocommerce_attribute_lookup_regeneration_step_size
woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php 243
$products_per_generation_step = apply_filters( 'woocommerce_attribute_lookup_regeneration_step_size', $step_size ?? self::PRODUCTS_PER_GENERATION_STEP );