This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using WPML with a custom permalink structure managed by https://permalinkmanager.pro/ and are facing issues with WPML not correctly translating URLs or linking to incorrect URLs. You need a way to override the translated URLs within the WPML class 'AbsoluteLinks' and are looking for a filter within '_process_generic_text' or another part of 'AbsoluteLinks' to achieve this.
Solution:
Currently, there is no filter available within '_process_generic_text' that allows for overriding translated links. To address your issue, you will need to either reproduce the URL replacement functionality outside of this class or consider patching the plugin. Unfortunately, there is no straightforward hook available to reimplement the URL replacement feature if you disable the default functionality with 'wpml_sl_blacklist_requests'.
If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. We also 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. For further assistance, please visit our support forum 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.