Viewing 1 replies (of 1 total)
  • Thread Starter karel772

    (@karel772)

    To get the currently selected language in WPML, they suggest to use the following code:

    global $sitepress;
    $language = $sitepress->get_current_language();

    That will return a two letter language code like ‘fr’ for French or ‘it’ for Italian which could then allow me to set the respective urls correctly… however where do I put this in the code so that I get the correct language code and the urls within cartpau are correctly created?

    Should this be done in the pm-class.php file? And if so where and how?

    Thanks for the help in advance.

Viewing 1 replies (of 1 total)
  • The topic ‘Cartpauj PM and WPML’ is closed to new replies.