WordPress at Your Fingertips
filter is not described

woocommerce_cart_product_cannot_be_purchased_message filter-hook . WC 3.8.0

Filters message about product unable to be purchased.

Usage

add_filter( 'woocommerce_cart_product_cannot_be_purchased_message', 'filter_function_name_5937', 10, 2 );
function filter_function_name_5937( $message, $product_data ){
	// filter...

	return $message;
}
$message(string)
Message.
$product_data(WC_Product)
Product data.

Changelog

Since 3.8.0 Introduced.

Where the hook is called

WC_Cart::add_to_cart()
woocommerce_cart_product_cannot_be_purchased_message
woocommerce/includes/class-wc-cart.php 1177
$message = apply_filters( 'woocommerce_cart_product_cannot_be_purchased_message', $message, $product_data );

Where in WP core the hook is used WooCommerce

Usage not found.