Learn in this tutorial how to remove the WooCommerce Memberships thank you text from the email with a simple code snippet.
If you’re using the WooCommerce Memberships plugin to create a membership you may have noticed that the purchase email that arrives to the customer adds a message.
It usually goes something like this:
“Thanks for purchasing a membership! You can view more details about your membership from your account“.
But, what if you don’t want to show this text?
No problem, you can hide it with a little bit of code. Here’s how to do it:
Snippet to remove WooCommerce Memberships thank you message from checkout emails.
Add the following code at the end of functions.php or in your functionality plugin:
It’s that simple.
If you want to also remove the text from the page where the order is finalized, then use this snippet instead:
With this code you prevent it from being displayed on both sites.
As you can see, with a few lines of code you can remove the thank you message that appears when a membership is created with WooCommerce Memberships, both on the checkout page and in the email sent to the customer.
Any questions? Let me know in the comments.
And if you want to give me any suggestion for future tutorials, leave it in the contact form. Advantages of being a subscriber. 😉