Learn in this tutorial how to customize the WooCommerce Memberships thank you text with a simple code snippet.
If you’re using the WooCommerce Memberships plugin to create a membership you may have noticed that next to the order details once the purchase is complete it also displays 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 happens if you want to customize this text?
No problem, you can get it with a little bit of code. Here’s how to do it:
Snippet to change WooCommerce Memberships thank you message
Add the following code at the end of functions.php or in your functionality plugin:
It’s that simple.
Obviously, you can change the thank you text to whatever you want.
As you can see, with a few lines of code you can customize the thank you message that is displayed when a membership is created with WooCommerce Memberships.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂