pll_the_language_link to force link?
-
Hello there,
I need to rewrite the link output by the language switcher even if the link is already set.
With this hook I manage to change URL only if it was originally NULL (i.e. no translation available)What I’m trying to do here is to translate a set of query_var (that are in fact category names) in a template page and rewrite the link in the language switcher accordingly.
Matteo
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘pll_the_language_link to force link?’ is closed to new replies.