Disable language selection in WordPress login page (wp-login.php).
Since version 5.9, WordPress has added a feature that allows users to select the language in the login page. However, not everyone really needs this feature. If you feel it is not useful (the website only uses a single language), you can completely disable it to avoid confusion as well as improve the loading speed of the login page somewhat. In today’s post, I will show you some simple methods to do that.
Disable language selection by code
All you need to do is insert the following code into the file
functions.php of the theme or child theme you are using. You can also insert it via plugin Code Snippets to avoid the code being deleted when upgrading the theme.
Save and check the results.
Disable language selection by plugin
There are various plugins that can help you with this:
Using the Unbloater plugin
If you are using plugin Unbloater on your website, update it to the latest version. Then visit Settings => Unbloater => tick the item Disable the language selector on the login page then save it.
See also: Streamlining WordPress to make your website lighter
Some other plugins
Alternatively, you can install and activate one of the following plugins. They only include a few lines of code, so they are very light and do not affect the loading speed of the web at all.
It’s simple, right? Good luck!
If you liked this article, follow my blog to regularly update the best and latest articles. Thanks very much. 🙂