Filter to change the product quantity stepping in the order editor of the admin area.
$step, $product, 'edit'
Sortie :
@param string $step The current step amount to be used in the quantity editor. @param WC_Product $product The product that is being edited. @param string $context The context in which the quantity editor is shown, 'edit' or 'refund'.
// Modifier la valeur avec le filtre 'woocommerce_quantity_input_step_admin'
add_filter('woocommerce_quantity_input_step_admin', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($step) {
// Modifier la valeur
return $step;
}
Chargement des actualités...