For the complete documentation index, see llms.txt. This page is also available as Markdown.

Plugin Woocommerce: Translate all email sent to customers

When a WooCommerce order is placed in a translated language, Weglot records that language in the order's metadata (weglot_language). The WooCommerce emails related to that order (order confirmation, invoice, etc.) are then translated into the customer's language.

Two conditions must be met:

  • The Translate emails option is enabled in the Weglot settings.

  • The order is linked to a language — orders placed in your original language are not translated.

This behavior is enabled by default. If you need to turn it off, use the weglot_woocommerce_translate_following_mail filter:

add_filter( 'weglot_woocommerce_translate_following_mail', '__return_false' );

Last updated