Last active
October 5, 2020 22:29
-
-
Save BenMcD0nald/ec6576b3208a01682a19834bd25f9e62 to your computer and use it in GitHub Desktop.
Saved from https://stackoverflow.com/questions/26188946/woocommerce-notice-messages-how-do-i-edit-them
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
add_filter( 'woocommerce_add_error', function( $message ) { | |
if( $message == 'Some message' ) | |
$message = ''; | |
return $message; | |
}); | |
//Open the plugin files and search for wc_add_notice:. That will get the original message to be changed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment