woocommerce_quantity_input_min_admin

woocommerce_quantity_input_min_admin

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_quantity_input_min_admin') is found 2 times:

  • /includes/admin/meta-boxes/views/html-order-item.php line 91
    			* @param   string      $step    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' or 'refund'.
    			*/
    			$min_edit   = apply_filters( 'woocommerce_quantity_input_min_admin', '0', $product, 'edit' );
    			$min_refund = apply_filters( 'woocommerce_quantity_input_min_admin', '0', $product, 'refund' );
    		?>
    		<div class="edit" style="display: none;">
    			<input type="number" step="<?php echo esc_attr( $step_edit ); ?>" min="<?php echo esc_attr( $min_edit ); ?>" autocomplete="off" name="order_item_qty[<?php echo absint( $item_id ); ?>]" placeholder="0" value="<?php echo esc_attr( $item->get_quantity() ); ?>" data-qty="<?php echo esc_attr( $item->get_quantity() ); ?>" size="4" class="quantity" />
    		</div>
    		<div class="refund" style="display: none;">
    
  • /includes/admin/meta-boxes/views/html-order-item.php line 92
    			* @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'.
    			*/
    			$min_edit   = apply_filters( 'woocommerce_quantity_input_min_admin', '0', $product, 'edit' );
    			$min_refund = apply_filters( 'woocommerce_quantity_input_min_admin', '0', $product, 'refund' );
    		?>
    		<div class="edit" style="display: none;">
    			<input type="number" step="<?php echo esc_attr( $step_edit ); ?>" min="<?php echo esc_attr( $min_edit ); ?>" autocomplete="off" name="order_item_qty[<?php echo absint( $item_id ); ?>]" placeholder="0" value="<?php echo esc_attr( $item->get_quantity() ); ?>" data-qty="<?php echo esc_attr( $item->get_quantity() ); ?>" size="4" class="quantity" />
    		</div>
    		<div class="refund" style="display: none;">
    			<input type="number" step="<?php echo esc_attr( $step_refund ); ?>" min="<?php echo esc_attr( $min_refund ); ?>" max="<?php echo absint( $item->get_quantity() ); ?>" autocomplete="off" name="refund_order_item_qty[<?php echo absint( $item_id ); ?>]" placeholder="0" size="4" class="refund_order_item_qty" />