Set language for registration email in code
-
Hi, first of all: a great plugin that helped me a lot!
I’m developing a custom plugin that communicates with a CRM and imports contacts from that CRM into WooCommerce. This all goes well but I want the registration email “Your account on xxx” to be in the correct language.
The API that is being used is aware of the language of a contact so it should be logical that the email that is being send by WooCommerce is in that language.The user is being created with the “wc_create_new_customer” function but how can I define the language that this email should be in code? Can I also define the default language for this new user?
Thank you for your feedback.
Pieter
- The topic ‘Set language for registration email in code’ is closed to new replies.