woocommerce_quantity_input_step_admin

FILTER woocommerce\includes\admin\meta-boxes\views\html-order-item.php (ligne 117) github
Filter to change the product quantity stepping in the order editor of the admin area.

Paramètres

Entrée :
$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'.

Utilisation

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

Actualités

Chargement des actualités...