woocommerce_quantity_input_autocomplete
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_autocomplete
woocommerce/includes/wc-template-functions.php 1835
'autocomplete' => apply_filters( 'woocommerce_quantity_input_autocomplete', 'off', $product ),