Compatibility issue with WPML | comp-4300
-
Hello there,
This is Andrés from the WPML compatibility team. I would like to report a compatibility issue between WPML and Amelia.
It was initially reported in this ticket
To replicate this issue, please follow these steps:
- Visit the website anonymously and verify that Amelia booking forms display in the selected site language, for example.
- Register or log in using a client account created from the frontend, which assigns a language based on the active site language during registration. Or assigning a language manually in the user profile page.
- Change the site language after logging in and observe that the booking forms remain in the language assigned in the profile page.
As workaround, we suggested this to our client:
- Add the following code to your theme’s functions.php file.
// WPML Workaround for compsupp-compsupp-8223
if ( class_exists('Sitepress') ) {
add_filter('amelia_modify_locale_filter', function($locale) {
$lang_details = apply_filters( 'wpml_post_language_details', NULL ) ;
$locale = $lang_details['locale'];
return $locale;
});
}Could you please give it a look?
Regards
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.