ssp_use_geo_redirect

ssp_use_geo_redirect activates the browser-language redirect script in Simply Static Pro’s WPML integration. The default is false. The script uses the languages available in the switcher and the visitor’s browser preference or saved selection.

add_filter( 'ssp_use_geo_redirect', '__return_true' );

Enable WPML and its language switcher, then run a full push. Open the published page in a fresh browser session with a supported alternate preferred language. Check the destination and verify that choosing a language manually still works. Same-origin language URLs work by default. Sites using a different domain for each language must also configure trusted language origins for the script. WPML setup.


Keep WordPress on your own host and add incremental publishing, forms and search with Simply Static Pro. Get managed WordPress and CDN hosting for your static site with Simply Static Studio.