This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_quantity_input_max', 'custom_woocommerce_quantity_input_max', 10, 2 ); | |
/** | |
* Setting max quantity to 1000. | |
* | |
* @param integer $max . | |
* @param object $product . | |
*/ | |
function custom_woocommerce_quantity_input_max( $max, $product ) { |