WordPress.org

Ready to get started?Download WordPress

Forums

Polylang
Friendly translation selector (3 posts)

  1. Kaspars
    Member
    Posted 2 years ago #

    Hi Chouby!

    Thanks for the useful plugin! I have made the following additions to the code:

    1. Add a user-friendly drop-down for choosing post translations
    2. Honor the surpress_filters flag before running pre_get_posts

    http://pastebin.com/xdkw4HXV

    Regards,
    Kaspars

    http://wordpress.org/extend/plugins/polylang/

  2. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    Hello Kaspars,

    Thanks for sharing. I will look at your code modifications proposal.

    Frédéric

  3. Chouby
    Member
    Plugin Author

    Posted 2 years ago #

    I did look at your proposals. I like your translation selector. I will use it for v0.9 (not in v0.8+ in which I only make bug corrections and I am sure there are still bugs to correct...)

    I did not make tests with the suppress_filters flag yet. However I noticed that the core uses it for other filters (so plugins don't have to take care) not pre_get_posts. What is your goal to honor the flag in pre_get_posts ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic