This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported that Download Monitor files, which were set to be translatable using WPML, stopped working correctly due to a recent update. The update removed the appending of the language code to the URL of downloads, causing a routing issue.
Solution:
We recommended adding a PHP snippet to the client's child theme's functions.php file or using a plugin for adding PHP snippets. The code to add is:
add_filter( 'dlm_wpml_home_url_filter', '__return_false' );
This snippet helps fix the home URLs. Additionally, we advised the client that the Download Monitor plugin is not officially compatible with WPML. We suggested contacting the plugin author to inquire about compatibility or joining our GoGlobal program for assistance in making the plugin compatible. More information on our GoGlobal program can be found here: GoGlobal program.
Please note that this solution might be outdated or not applicable to your specific 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 the issue persists, please open a new support ticket.
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 3 replies, has 2 voices.
Last updated by 7 months, 1 week ago.
Assisted by: Dražen.