Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with their multilingual website where the WordPress admin interface changes to the language of the first front-end visitor, affecting the language of emails sent, which do not match the user's preferred language. All Theme-Options strings are registered under the domain admin_texts_jws_option, and translating a string causes the admin UI to switch languages and remain in that language.
Solution:
To address the issue of the admin interface changing languages and affecting email language settings, follow these steps:
1. Ensure you have a full backup of your website.
2. Navigate to Plugins > Plugin File Editor and select the "LoveDate Core" plugin.
3. Open the file "redux-core/inc/classes/class-redux-options-constructor.php".
4. Locate the following code:

public function __construct( $parent ) {<br />    parent::__construct( $parent );<br />    add_action( 'admin_init', array( this, 'register' ) );<br />}

5. Replace it with:

public function __construct( $parent ) {<br />    parent::__construct( $parent );<br />    add_action( 'current_screen', array( this, 'register' ) );<br />}

6. Save the changes.
This modification should prevent the admin interface from switching languages based on the front-end visitor's language, thereby ensuring emails are sent in the correct language. Note that this solution involves custom code modification, which is not officially covered by WPML support.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 16 replies, has 0 voices.

Last updated by Lucas Vidal de Andrade 4 months, 1 week ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
July 6, 2025 at 1:40 pm #17205025

vitoG-4

Hi Lucas,

Thanks – it seems the overriding issue is now resolved.

I’ve noticed that some of the translations I made yesterday are missing, so maybe they weren’t saved correctly.

That said, the issue with emails being sent in the correct language still persists.

To clarify: all emails are sent in English, including those sent by Membership Pro and AffiliateWP, except for the email verification process, which works correctly.

Could you help me understand what’s causing this?

Here is a video showing the issue:

hidden link

Best regards,
Vik

July 7, 2025 at 2:54 pm #17209558

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hey there Vik,

Upon a more detailed analysis, we concluded that the issue we solved here, and the issue with the e-mails are not related. Since you've already opened a new ticket for the e-mail issue, I'll close it here.

You can proceed with my colleague Andreas directly there:
https://wpml.org/forums/topic/emails-sent-in-incorrect-language-affiliatewp-membership-pro/

He's waiting for your feedback.