Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Yuri-Lima/661fd3041ce77dfcb9baa8f7ff4ad72e to your computer and use it in GitHub Desktop.
Save Yuri-Lima/661fd3041ce77dfcb9baa8f7ff4ad72e to your computer and use it in GitHub Desktop.
Remove the "Added to cart" notice in WooCommerce
<?php // For implementation instructions see: https://aceplugins.com/how-to-add-a-code-snippet/
/**
* Remove add to cart notice in WooCommerce
*/
add_filter( 'wc_add_to_cart_message_html', '__return_empty_string' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment