Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JeroenSormani/53fee7aec57044c98037d5ad402717ab to your computer and use it in GitHub Desktop.
Save JeroenSormani/53fee7aec57044c98037d5ad402717ab 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