woocommerce_quantity_input_autocomplete filter-hookWC 1.0

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.

Usage

add_filter( 'woocommerce_quantity_input_autocomplete', 'wp_kama_woocommerce_quantity_input_autocomplete_filter', 10, 2 );

/**
 * Function for `woocommerce_quantity_input_autocomplete` filter-hook.
 * 
 * @param  $string  
 * @param  $product 
 *
 * @return 
 */
function wp_kama_woocommerce_quantity_input_autocomplete_filter( $string, $product ){

	// filter...
	return $string;
}
$string
-
$product
-

Where the hook is called

woocommerce_quantity_input()
woocommerce_quantity_input_autocomplete
woocommerce/includes/wc-template-functions.php 1798
'autocomplete' => apply_filters( 'woocommerce_quantity_input_autocomplete', 'off', $product ),

Where the hook is used in WooCommerce

Usage not found.