• Dear all,

    I am using polylang plugin and face this problem.

    When I want to register a custom string with Polylang: I use pll_register_string(“footer_string”, “some complicate HTML shortcode string here”); (in functions.php)

    Then, at another place (in footer.php), I want to call the translated string previously registered. I use pll_e(“and what do I have to use to call the translated string?”);

    I think it is better to use it like pll_e($name_of_the_string);

    And then, Polylang will search for the string by its id or name.

    But currently, Polylang doesn’t work like this. And I don’t know why?

    If anyone has ideas how to solve this problem. Thanks so much!

    I am in a sorrow!

  • The topic ‘[Plugin: Polylang] Issue with function pll_register_string() and pll_e()’ is closed to new replies.