add $product object to woocommerce_quantity_input_classes

This commit is contained in:
Kathy Darling 2018-10-15 17:24:47 -05:00
parent 5c722a32e8
commit 61f4f4e298
1 changed files with 1 additions and 1 deletions

View File

@ -1583,7 +1583,7 @@ if ( ! function_exists( 'woocommerce_quantity_input' ) ) {
'input_id' => uniqid( 'quantity_' ),
'input_name' => 'quantity',
'input_value' => '1',
'classes' => apply_filters( 'woocommerce_quantity_input_classes', array( 'input-text', 'qty', 'text' ) ),
'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 ),