WordPress at a glance
filter is not described

woocommerce_cart_product_not_enough_stock_already_in_cart_message filter-hook . WC 5.3.0

Filters message about product not having enough stock accounting for what's already in the cart.

Usage

add_filter( 'woocommerce_cart_product_not_enough_stock_already_in_cart_message', 'filter_function_name_9231', 10, 4 );
function filter_function_name_9231( $message, $product_data, $stock_quantity, $stock_quantity_in_cart ){
	// filter...

	return $message;
}
$message(string)
Message.
$product_data(WC_Product)
Product data.
$stock_quantity(int)
Quantity remaining.
$stock_quantity_in_cart(int)
-

Changelog

Since 5.3.0 Introduced.

Where the hook is called

WC_Cart::add_to_cart()
woocommerce_cart_product_not_enough_stock_already_in_cart_message
woocommerce/includes/class-wc-cart.php 1242
$message = apply_filters( 'woocommerce_cart_product_not_enough_stock_already_in_cart_message', $message, $product_data, $stock_quantity, $stock_quantity_in_cart );

Where in WP core the hook is used WooCommerce

Usage not found.