Support » Plugin: Polylang » Api function get_default_language

Viewing 4 replies - 1 through 4 (of 4 total)
  • Or is there a reason not to use the default lang?

    Plugin Author Chouby

    (@chouby)

    Hi!

    That’s something which would not be difficult to add. But take care that get_default_language does not always return the default language but the language selected in the language filter (maybe I should rename this function as its current name can lead to misinterpretation). I guess you would like something similar as pll_current_language but available on both admin and frontend?

    Plugin Author Chouby

    (@chouby)

    In v1.0, a new function ‘pll_default_language’ (with same options as ‘pll_current_language’). Unlike ‘pll_current_language’, it will be available on both admin and frontend.

    The current development version is available:
    http://downloads.wordpress.org/plugin/polylang.zip

    So awesome! Cheers mate 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Api function get_default_language’ is closed to new replies.