Filter Examples

  • Disable User Locale on Front-End
    To exclude the user locale menu item from the front-end toolbar menu add the following filter hook to your functions.php file.
  • Modify the Menu Title
    To modify the "User Locale" menu title, you can hook the 'wpsso_user_locale_menu_title' filter.
  • Modify the Redirect URL
    You can also modify the URL used to reload the page after selecting a locale by hooking the 'wpsso_user_locale_redirect_url' filter.