woocommerce_quantity_input_classes
Usage
add_filter( 'woocommerce_quantity_input_classes', 'wp_kama_woocommerce_quantity_input_classes_filter', 10, 2 ); /** * Function for `woocommerce_quantity_input_classes` filter-hook. * * @param $array * @param $product * * @return */ function wp_kama_woocommerce_quantity_input_classes_filter( $array, $product ){ // filter... return $array; }
- $array
- -
- $product
- -
Where the hook is called
woocommerce_quantity_input_classes
woocommerce/includes/wc-template-functions.php 1825
'classes' => apply_filters( 'woocommerce_quantity_input_classes', array( 'input-text', 'qty', 'text' ), $product ),