Users & Login PHP Beginner

Remove the Language Switcher From the Login Page

Hide the language dropdown that appears under the login form when more than one language is installed.

Tested on WordPress 7.1 PHP 8.3 No plugin needed Updated
functions.php 1 lines
add_filter( 'login_display_language_dropdown', '__return_false' );

Where to add this

Recommended A code snippets plugin Survives theme changes and is easy to switch off.
Child theme At the end of your child theme's functions.php file.
Must-use plugin As a .php file in wp-content/mu-plugins, starting with <?php.

Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.

When a site has extra languages installed, WordPress shows a language dropdown below the login form. Most visitors never need it, and it clutters a branded login page. This one line removes it.

How it works

login_display_language_dropdown decides whether the dropdown is shown. Returning false hides it. Each user’s language setting on their profile still works.

Things to watch

  • Users can still change their admin language under Users → Profile → Language.

How to test it

Log out and view the login page. The language dropdown should be gone.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only