Password doesn't work ... :(, but it will be more faster...if you simple add the the code above in functions.php
Then go to woocommerce new order email and put this as subject:
New order from {order_firstname} {order_lastname} website ({order_number}) - {order_date}
If wpml is activated you will see the order_firstname won't parse but if it is deactivated then this will work.
Thanks waiting for your answer regarding this issue.
I added the code to functions.php
changed email subject in woocommerce new order email
and I am getting same email subject with and without WPML. screenshot attached.
You can check your self by changing the email to yours in WooCommerce > Settings > emails > new order > Manage > recipient
hidden link
username: wpml
password: otgs
So it works in a fresh installation as you expect.
please try,
1)
disable all the plugins except WPML and check
2)
disable all the browser, server and plugin caches and try
Also on another note - if you are using that hook, you won't probably get a translation of that string ever, so we suggest to change the string in the settings or template for the email instead.
As it is a complex work and it should go to the core WCML we will need more time to find a workaround and implement it in the core WCML.