woocommerce_stock_amount_cart_item filter-hookWC 1.0

Usage

add_filter( 'woocommerce_stock_amount_cart_item', 'wp_kama_woocommerce_stock_amount_cart_item_filter', 10, 2 );

/**
 * Function for `woocommerce_stock_amount_cart_item` filter-hook.
 * 
 * @param  $wc_stock_amount 
 * @param  $cart_item_key   
 *
 * @return 
 */
function wp_kama_woocommerce_stock_amount_cart_item_filter( $wc_stock_amount, $cart_item_key ){

	// filter...
	return $wc_stock_amount;
}
$wc_stock_amount
-
$cart_item_key
-

Where the hook is called

WC_Form_Handler::update_cart_action()
woocommerce_stock_amount_cart_item
woocommerce/includes/class-wc-form-handler.php 690
$quantity = apply_filters( 'woocommerce_stock_amount_cart_item', wc_stock_amount( preg_replace( '/[^0-9\.]/', '', $cart_totals[ $cart_item_key ]['qty'] ) ), $cart_item_key );

Where the hook is used in WooCommerce

Usage not found.