Hook for Rewrites_Redirection class
-
Hey dev team,
We have installed the plugin and it works perfectly for us, but we need to make an adjustment in the plugin in the Rewrites_Redirection class located in Models so that it passes us the value for a language parameter, that is ?lang=en and similar from the cloaked url to the destination url, that is for example:
I need it to be like this e.g. https://www.google.com/?lang=es. That is, ‘es’ is the value that the key ‘lang’ should have, the destination url must have any value or values that I pass, that is, it can be any like these:
https://thirsty-links.local/go/test/?en
https://thirsty-links.local/go/test/?eshttps://thirsty-links.local/go/test/?fr
and later goes to:https://www.google.com/?lang=en
https://www.google.com/?lang=es
https://www.google.com/?lang=fr
So in the link editing field I would put this destination URL without the language value https://www.google.com/?lang= expecting the value.
I already managed to adjust it by adjusting the code of the Rewrites_Redirection class, but I tried to extend the functionality without having to modify the plugin code but I can’t because the class is private, do you have a hook to modify this behavior from the outside? either a plugin, theme?
Thank you
- The topic ‘Hook for Rewrites_Redirection class’ is closed to new replies.