WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Widgets
[resolved] Widgets made by dynamic_sidebar() ignore add_filter( 'locale' ) (4 posts)

  1. kapooostin
    Member
    Posted 1 year ago #

    Adding this filter changes locale for everything on the page except default widgets. Is it a feature or a bug?

    http://wordpress.org/extend/plugins/dynamic-widgets/

  2. Qurl
    Member
    Plugin Author

    Posted 1 year ago #

    I don't think this has anything to do with the plugin Dynamic Widgets. I'd more suspect the default widgets created by the theme you are using or the default widgets created by WordPress.

  3. kapooostin
    Member
    Posted 1 year ago #

    You're right. Default widgets created by WordPress are initialized before a theme and plugins.

  4. kapooostin
    Member
    Posted 1 year ago #

    The answer was simple after all. Using add_filter('locale') for changing locale should be done not in functions.php of a theme, but in plugin. Then a theme is translated correctly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.