Filters the step for the quantity input for this product.
1, $this
Sortie :
@param int|float $step The step. @param \WC_Product $this The product object. @return int|float The step.
// Modifier la valeur avec le filtre 'woocommerce_quantity_input_step'
add_filter('woocommerce_quantity_input_step', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(1) {
// Modifier la valeur
return 1;
}
Chargement des actualités...