woocommerce_cart_item_removed_message filter-hookWC 3.8.0

Filter message about item removed from the cart.

Usage

add_filter( 'woocommerce_cart_item_removed_message', 'wp_kama_woocommerce_cart_item_removed_message_filter', 10, 2 );

/**
 * Function for `woocommerce_cart_item_removed_message` filter-hook.
 * 
 * @param string     $message Message.
 * @param WC_Product $product Product data.
 *
 * @return string
 */
function wp_kama_woocommerce_cart_item_removed_message_filter( $message, $product ){

	// filter...
	return $message;
}
$message(string)
Message.
$product(WC_Product)
Product data.

Changelog

Since 3.8.0 Introduced.

Where the hook is called

WC_Cart_Session::get_cart_from_session()
woocommerce_cart_item_removed_message
woocommerce/includes/class-wc-cart-session.php 186
$message = apply_filters( 'woocommerce_cart_item_removed_message', $message, $product );

Where the hook is used in WooCommerce

Usage not found.