get_purchase_quantity_step() : 1;
/**
* Filter to change the product quantity stepping in the order editor of the admin area.
*
* @since 5.8.0
* @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'.
*/
$step_edit = apply_filters( 'woocommerce_quantity_input_step_admin', $step, $product, 'edit' );
$step_refund = apply_filters( 'woocommerce_quantity_input_step_admin', $step, $product, 'refund' );
/**
* Filter to change the product quantity minimum in the order editor of the admin area.
*
* In the 'edit' context the default is 0, floored at the item's current
* quantity when that is already negative (so orders created with negative
* quantities via the API remain editable). Since 11.2.0 the filter also
* runs with the 'add' context when products are added to an order.
*
* @since 5.8.0
* @param string $min The current minimum 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', 'refund' or 'add'.
*/
$min_refund = apply_filters( 'woocommerce_quantity_input_min_admin', '0', $product, 'refund' );
$min_edit = wc_get_container()->get( ItemQuantityLimits::class )->get_quantity_input_min( $item, $product );
?>