Created
January 26, 2022 14:14
-
-
Save damiencarbery/7dbcf2238d82f60c77d9af6c5bd55e8b to your computer and use it in GitHub Desktop.
Disable language dropdown on login page - Disable the language dropdown on the login page as it may confuse some users/admins. Introduced in WordPress 5.9. https://www.damiencarbery.com/2022/01/disable-language-dropdown-on-login-page/
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 | |
/* | |
Plugin Name: Disable language dropdown on login page | |
Plugin URI: https://www.damiencarbery.com/2022/01/disable-language-dropdown-on-login-page/ | |
Description: Disable the language dropdown on the login page as it may confuse some users/admins. Introduced in WordPress 5.9. | |
Author: Damien Carbery | |
Author URI: https://www.damiencarbery.com | |
Version: 0.1 | |
*/ | |
add_filter( 'login_display_language_dropdown', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment