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.
Problema: Quando si passa il cursore sulle bandiere della lingua, appare del codice HTML che non dovrebbe esserci. Soluzione: Se stai riscontrando questo problema, ti consigliamo di provare ad attivare un tema di default per verificare se il problema persiste. Questo passaggio può aiutare a determinare se il problema è effettivamente legato al tema o se è necessario indagare ulteriormente.
Se la soluzione proposta risulta essere irrilevante, perché potrebbe essere datata o non applicabile al tuo caso, ti suggeriamo di aprire un nuovo ticket di supporto. Ti consigliamo vivamente di controllare gli argomenti noti correlati, verificare la versione della correzione permanente e confermare che hai installato le versioni più recenti dei temi e dei plugin.