Title: Filter pll_the_languages does not reach dropdown javascript code
Last modified: August 20, 2016

---

# Filter pll_the_languages does not reach dropdown javascript code

 *  [ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/filter-pll_the_languages-does-not-reach-dropdown-javascript-code/)
 * **Filter: [pll_the_languages](http://polylang.wordpress.com/documentation/documentation-for-developers/filter-reference/)**
 * > 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.
 * [http://wordpress.org/extend/plugins/polylang/](http://wordpress.org/extend/plugins/polylang/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/filter-pll_the_languages-does-not-reach-dropdown-javascript-code/#post-3455379)
 * Tried a different approach and found that also the filter [pll_the_language_link](http://polylang.wordpress.com/documentation/documentation-for-developers/filter-reference/)
   does not reach the urls used in the javascript code.
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/filter-pll_the_languages-does-not-reach-dropdown-javascript-code/#post-3455460)
 * 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.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filter pll_the_languages does not reach dropdown javascript code’ is 
closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/filter-pll_the_languages-does-not-reach-dropdown-javascript-code/#post-3455460)
 * Status: not resolved