Filter to alter the count of products that will be processed in each step of the product attributes lookup table regeneration process.
$step_size ?? self::PRODUCTS_PER_GENERATION_STEP
Sortie :
@param int $count Default processing step size.
// Modifier la valeur avec le filtre 'woocommerce_attribute_lookup_regeneration_step_size'
add_filter('woocommerce_attribute_lookup_regeneration_step_size', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($step_size ?? self::PRODUCTS_PER_GENERATION_STEP) {
// Modifier la valeur
return $step_size ?? self::PRODUCTS_PER_GENERATION_STEP;
}
Chargement des actualités...