WordPress filter hook

login_display_language_dropdown

Fired by 12 WordPress plugins, running on 583K+ sites between them.

“Filters whether to display the Language selector on the login screen.”

How to use login_display_language_dropdown

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'login_display_language_dropdown', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from LoginPress's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

12 plugins that fire login_display_language_dropdown

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. LoginPress icon LoginPress200,000+ installs apply_filters( 'login_display_language_dropdown', true ) include/template-loginpress.php:322
  2. Two Factor icon Two Factor100,000+ installs apply_filters( 'login_display_language_dropdown', true ) includes/function.login-footer.php:61
  3. Hide My WP Ghost icon Hide My WP Ghost100,000+ installs apply_filters( 'login_display_language_dropdown', true ) view/wplogin/footer.php:77
  4. Custom Login Page Customizer icon Custom Login Page Customizer80,000+ installs apply_filters( 'login_display_language_dropdown', false ) src/Customizer/template-login-customizer.php:142
  5. WP Hide & Security Enhancer icon WP Hide & Security Enhancer50,000+ installs apply_filters( 'login_display_language_dropdown', true ) modules/components/login_2fa_template_login_footer.php:63
  6. Ultimate Dashboard icon Ultimate Dashboard50,000+ installs apply_filters( 'login_display_language_dropdown', true ) modules/login-customizer/templates/udb-login-page.php:269
  7. Login Page Styler icon Login Page Styler2,000+ installs apply_filters( 'login_display_language_dropdown', true ) lpsnewLogin.php:207
  8. Login Page Customizer icon Login Page Customizer1,000+ installs apply_filters( 'login_display_language_dropdown', true ) login-page-customizer/customize/template-lpc-custom-login-page.php:286
  9. Fuerte-WP icon Fuerte-WP70+ installs apply_filters( 'login_display_language_dropdown', true ) includes/two-factor/includes/function.login-footer.php:62
  10. Loginify icon Loginify20+ installs apply_filters( 'login_display_language_dropdown', false ) templates/loginify-page.php:104
  11. DP Websolutions icon DP Websolutions10+ installs apply_filters( 'login_display_language_dropdown', true ) includes/safe-preview.php:298
  12. Dashboard Plus icon Dashboard PlusFewer than 10 installs apply_filters( 'login_display_language_dropdown', true ) modules/customizer/templates/dashplu-login-page.php:303

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.