You can also modify the URL used to reload the page (after selecting a locale from the menu) by hooking the ‘wpsso_user_locale_redirect_url’ filter.
1 2 3 4 5 6 7 8 9 |
add_filter( 'wpsso_user_locale_redirect_url', 'customize_user_locale_redirect_url', 10, 2 ); function customize_user_locale_redirect_url( $url, $user_locale ) { // modify the redirect url here return $url; } |