woocommerce_quantity_input_autocomplete

woocommerce_quantity_input_autocomplete

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_quantity_input_autocomplete') is found 1 times:

  • /includes/wc-template-functions.php line 1922
    			'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.
    			'autocomplete' => apply_filters( 'woocommerce_quantity_input_autocomplete', 'off', $product ),
    			'readonly'     => false,
    		);
    
    		$args = apply_filters( 'woocommerce_quantity_input_args', wp_parse_args( $args, $defaults ), $product );
    
    		// Apply sanity to min/max args - min cannot be lower than 0.