add $product object to woocommerce_quantity_input_classes
This commit is contained in:
parent
5c722a32e8
commit
61f4f4e298
|
@ -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 ),
|
||||
|
|
Loading…
Reference in New Issue