wpml_object_id parameters in fix_language_mismatch
-
In my site I’ve installed permalink manager with wpml and wp-graphql.
When I had update Permalink Manager to 2.2.19.3 version the graphql don’t return anymore the right language code and the translated contents.In file “pemalink-manager-pro\includes\core\permalink-manager-language-plugins.php”, line 828, there is a wpml filters:
?item_id = apply_filters('wpml_object_id', $element_id, $element_type);
I try to add the language code parameter to force the language:
$item_id = apply_filters('wpml_object_id', $element_id, $element_type, false, $element_language_code );
and it works perfectly right now.
Is it possible to include this improve in future version?
- The topic ‘wpml_object_id parameters in fix_language_mismatch’ is closed to new replies.