This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Custom Add To Cart Messages | |
* Add this to your theme functions.php file | |
**/ | |
// woocommerce_add_to_cart_message is now wc_add_to_cart_message | |
add_filter( 'wc_add_to_cart_message', 'custom_add_to_cart_message' ); | |
function custom_add_to_cart_message() { | |
global $woocommerce; |