wc_add_to_cart_message filter-hookWC 1.0

Usage

add_filter( 'wc_add_to_cart_message', 'wp_kama_wc_add_to_cart_message_filter', 10, 2 );

/**
 * Function for `wc_add_to_cart_message` filter-hook.
 * 
 * @param  $message    
 * @param  $product_id 
 *
 * @return 
 */
function wp_kama_wc_add_to_cart_message_filter( $message, $product_id ){

	// filter...
	return $message;
}
$message
-
$product_id
-

Where the hook is called

wc_add_to_cart_message()
wc_add_to_cart_message
woocommerce/includes/wc-cart-functions.php 133
$message = apply_filters( 'wc_add_to_cart_message', $message, $product_id );

Where the hook is used in WooCommerce

Usage not found.