wc_add_to_cart_message_html хук-фильтрWC 1.0

Использование

add_filter( 'wc_add_to_cart_message_html', 'wp_kama_wc_add_to_cart_message_html_filter', 10, 3 );

/**
 * Function for `wc_add_to_cart_message_html` filter-hook.
 * 
 * @param  $message  
 * @param  $products 
 * @param  $show_qty 
 *
 * @return 
 */
function wp_kama_wc_add_to_cart_message_html_filter( $message, $products, $show_qty ){

	// filter...
	return $message;
}
$message
-
$products
-
$show_qty
-

Где вызывается хук

wc_add_to_cart_message()
wc_add_to_cart_message_html
woocommerce/includes/wc-cart-functions.php 136
$message = apply_filters( 'wc_add_to_cart_message_html', $message, $products, $show_qty );

Где используется хук в WooCommerce

woocommerce/src/Blocks/BlockTypes/AddToCartForm.php 31
add_filter( 'wc_add_to_cart_message_html', array( $this, 'add_to_cart_message_html_filter' ), 10, 2 );