woocommerce_attribute_lookup_regeneration_step_size хук-фильтрWC 6.3

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

Использование

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.

Список изменений

С версии 6.3 Введена.

Где вызывается хук

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 );

Где используется хук в WooCommerce

Использование не найдено.