Filter pll_the_languages does not reach dropdown javascript code (3 posts)

  1. Ov3rfly
    Posted 3 years ago #

    Filter: pll_the_languages

    Allows plugins to modify the whole output of the language switcher.

    Can't modify the javascript of dropdown with this filter in version 1.0.1

    Can modify the <option ..> in dropdown but not the javascript output with the urls, would like to replace certain urls via a filter.


  2. Ov3rfly
    Posted 3 years ago #

    Tried a different approach and found that also the filter pll_the_language_link does not reach the urls used in the javascript code.

  3. Chouby
    Plugin Author

    Posted 3 years ago #

    Yes you are right. Things dif not appear in Polylang at the same time... My first intention was:
    1. provide a widget with a small set of options for people who have no coding skills and will be satisfied with a relatively simple widget.
    2. provide the template tag 'pll_the_languages' with a more complete set of options for theme programmers. Here the js code is not present and has to be written by the programmer. The filters are here to help some customizations, although someone who will want a full flexibility will have to write his own language switcher.

    It is on my plans to rework this a bit.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Polylang
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic