Skip to content

Instantly share code, notes, and snippets.

@BeyondTheLoop
Created December 1, 2020 11:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BeyondTheLoop/6aeec3c9b71d1147f80d62ea1a2795aa to your computer and use it in GitHub Desktop.
Save BeyondTheLoop/6aeec3c9b71d1147f80d62ea1a2795aa to your computer and use it in GitHub Desktop.
Change WooCommerce message after adding product to cart
function custom_add_to_cart_message() {
$message = 'New message' ;
return $message;
}
add_filter( 'wc_add_to_cart_message_html', 'custom_add_to_cart_message' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment