woocommerce_quantity_input_step

woocommerce_quantity_input_step

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_quantity_input_step') is found 2 times:

  • /includes/admin/meta-boxes/views/html-order-item.php line 70

    }
    ?>

  • /includes/wc-template-functions.php line 1812
    			'input_value'  => '1',
    			'classes'      => apply_filters( 'woocommerce_quantity_input_classes', array( 'input-text', 'qty', 'text' ), $product ),
    			'max_value'    => apply_filters( 'woocommerce_quantity_input_max', -1, $product ),
    			'min_value'    => apply_filters( 'woocommerce_quantity_input_min', 0, $product ),
    			'step'         => apply_filters( 'woocommerce_quantity_input_step', 1, $product ),
    			'pattern'      => apply_filters( 'woocommerce_quantity_input_pattern', has_filter( 'woocommerce_stock_amount', 'intval' ) ? '[0-9]*' : '' ),
    			'inputmode'    => apply_filters( 'woocommerce_quantity_input_inputmode', has_filter( 'woocommerce_stock_amount', 'intval' ) ? 'numeric' : '' ),
    			'product_name' => $product ? $product->get_title() : '',
    			'placeholder'  => apply_filters( 'woocommerce_quantity_input_placeholder', '', $product ),
    			// When autocomplete is enabled in firefox, it will overwrite actual value with what user entered last. So we default to off.
    			// See @link https://github.com/woocommerce/woocommerce/issues/30733.
    
  • See this hook used in plugins: