woocommerce_attribute_lookup_regeneration_step_size

FILTER woocommerce\src\Internal\ProductAttributesLookup\DataRegenerator.php (ligne 242) github
Filter to alter the count of products that will be processed in each step of the product attributes lookup table regeneration process.

Paramètres

Entrée :
$step_size ?? self::PRODUCTS_PER_GENERATION_STEP
Sortie :
@param int $count Default processing step size.

Utilisation

// 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;
}

Actualités

Chargement des actualités...