woocommerce_quantity_input_max filter-hookWC 1.0

Usage

add_filter( 'woocommerce_quantity_input_max', 'wp_kama_woocommerce_quantity_input_max_filter', 10, 2 );

/**
 * Function for `woocommerce_quantity_input_max` filter-hook.
 * 
 * @param  $product_max_purchase_quantity 
 * @param  $product                       
 *
 * @return 
 */
function wp_kama_woocommerce_quantity_input_max_filter( $product_max_purchase_quantity, $product ){

	// filter...
	return $product_max_purchase_quantity;
}
$product_max_purchase_quantity
-
$product
-

Where the hook is called

In file: /templates/single-product/add-to-cart/simple.php
woocommerce_quantity_input_max
woocommerce/templates/single-product/add-to-cart/simple.php 41
'max_value'   => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ),
woocommerce/templates/single-product/add-to-cart/variation-add-to-cart-button.php 23
'max_value'   => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ),
woocommerce/templates/single-product/add-to-cart/grouped.php 76
'max_value'   => apply_filters( 'woocommerce_quantity_input_max', $grouped_product_child->get_max_purchase_quantity(), $grouped_product_child ),
woocommerce/includes/wc-template-functions.php 1789
'max_value'    => apply_filters( 'woocommerce_quantity_input_max', -1, $product ),

Where the hook is used in WooCommerce

Usage not found.