Skip to content

Instantly share code, notes, and snippets.

@BenMcD0nald
Last active October 5, 2020 22:29
Show Gist options
  • Save BenMcD0nald/ec6576b3208a01682a19834bd25f9e62 to your computer and use it in GitHub Desktop.
Save BenMcD0nald/ec6576b3208a01682a19834bd25f9e62 to your computer and use it in GitHub Desktop.
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