How to Hide Added to Cart Message in WooCommerce

Most themes display “Such-and-such product has been added to your cart.” If you don’t want to display that message every time an item is added, just add the following snippet to your functions.php file:

add_filter( 'wc_add_to_cart_message_html', '__return_false' );Code language: JavaScript (javascript)
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x