-
-
Save ONEKENO/a425cc9b70ea0d828e0563b53365d244 to your computer and use it in GitHub Desktop.
#wordpress polylang disable language in frontend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( !is_admin() && $pagenow != 'wp-login.php' && pll_current_language() == 'en' ) | |
{ | |
wp_redirect(site_url().'/de/'); | |
die(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment