wc_add_to_cart_message_html

wc_add_to_cart_message_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('wc_add_to_cart_message_html') is found 1 times:

  • /includes/wc-cart-functions.php line 136
    		wc_deprecated_function( 'The wc_add_to_cart_message filter', '3.0', 'wc_add_to_cart_message_html' );
    		$message = apply_filters( 'wc_add_to_cart_message', $message, $product_id );
    	}
    
    	$message = apply_filters( 'wc_add_to_cart_message_html', $message, $products, $show_qty );
    
    	if ( $return ) {
    		return $message;
    	} else {
    		wc_add_notice( $message, apply_filters( 'woocommerce_add_to_cart_notice_type', 'success' ) );
    	}
    

See this hook used in plugins:

Examples using wc_add_to_cart_message_html