Language Switcher on Login Page in WordPress 5.9

Since WordPress 4.9, it’s possible to control the language of the login screen using the wp_lang query variable (example: wp-login.php?wp_lang=fr_FR).

This is a hidden feature that was only used by the interim login modal.

The update of WordPress 5.9 has introduced a new language switcher available on the login screen.

This language switcher dropdown allows users to use the login screen, the password reset screen, and the registration screen in their own language.

Filters Default Arguments For The Languages Dropdown

Please note that the language list in the dropdown is based on the currently installed languages of the WordPress installation. To install a new language, websites administrators can use the language selector available on Settings > General. Go to the site languages drop-down, select a language to install and save changes. This installs and switches the site language, you can switch back if you do not want that as the default language.

On a website with several languages installed, only show fr_FR and de_DE in the dropdown

Add specific languages in the dropdown Usage example:

function loginpress_filter_login_language_dropdown_args( $args ) {    

   $args['languages'] = array( 'fr_FR', 'de_DE' );  

   return $args;


add_filter( 'login_language_dropdown_args', 'loginpress_filter_login_language_dropdown_args', 10, 1 );

Remove The Language Dropdown Entirely

If you want to remove the Language dropdown entirely, you can use the login_display_language_dropdown filter.

Remove dropdown Usage example:

add_filter( 'login_display_language_dropdown', '__return_false' );

Usage in LoginPress:

LoginPress has adapted the language switcher in version 1.5.11 so the user can customize it accordingly.

LoginPress is providing the feature to allow the admin of the site to control the availability of language switchers to the general public on the login screen.

loginpress language switcher

Leave a comment

Your email address will not be published.

triangular shape yellowish icon

Frequently Asked Questions (FAQs)

These FAQs answer the most common questions about our WordPress custom login page plugin.

three shapes icon

Is LoginPress WPML Compatible?

LoginPress is fully supported with multilingual. LoginPress is also compatible with WPML Plugin, which means you can easily translate your login page with WPML plugin according to the given translation options in the WPML plugin.

Is LoginPress translation ready?

Yes, LoginPress has full translation and localization support via the LoginPress textdomain. All .mo and .po translation files should go into the languages folder in the base of the plugin.

Is coding skills needed to use LoginPress?

No, It is very easy to setup. Just plug and play. Have fun!

How to Install or Use LoginPress Pro?

Step-by-step instructions on How to Upgrade from existing Free version to Pro
1. You have installed and set up the Free version already.
2. Upload the Pro version.
3. Pro features will be enabled automatically.
4. You don’t need to set up Free version options again.
5. Setup Pro features like Google fonts, Google reCaptcha, Choose themes, etc.

Where is my license key?

License key is the Order ID which looks like in this format.
You can find it in the email Sales Receipt.

three shapes icon

If you Still have Questions?

Get In Touch