REST API – create new customer and set language
-
Hi,
I can’t figure out how to create a new customer via the REST API and set its locale.
I have tried to set the meta_data “locale” at the same time as I call the post->customers API function, but the “locale” meta_data remains empty. I could not find any example for this in the documentation.The only workaround I have been able to use is to create the new customer via WooCommerce REST API, and then use the WordPress API to update the “locale” of the user. But the problem with this model is that the WooCommerce New Account email is only sent out in the default language, as it is triggered before the “locale” is actually updated.
Is there any way to pass on the “locale” to be used for a new customer when creating it via the WooCommerce REST API?
Thank you.
The topic ‘REST API – create new customer and set language’ is closed to new replies.