WordPress filter hook

login_language_dropdown_args

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

“Filters default arguments for the Languages select input on the login screen.”

How to use login_language_dropdown_args

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_language_dropdown_args', function( $args ) {
	// Change $args here.
	return $args;
}, 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_language_dropdown_args

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_language_dropdown_args', $args ) include/template-loginpress.php:360
  2. Two Factor icon Two Factor100,000+ installs apply_filters( 'login_language_dropdown_args', $args ) includes/function.login-footer.php:93
  3. Hide My WP Ghost icon Hide My WP Ghost100,000+ installs apply_filters( 'login_language_dropdown_args', $args ) view/wplogin/footer.php:115
  4. Custom Login Page Customizer icon Custom Login Page Customizer80,000+ installs apply_filters( 'login_language_dropdown_args', $args ) src/Customizer/template-login-customizer.php:173
  5. WP Hide & Security Enhancer icon WP Hide & Security Enhancer50,000+ installs apply_filters( 'login_language_dropdown_args', $args ) modules/components/login_2fa_template_login_footer.php:100
  6. Ultimate Dashboard icon Ultimate Dashboard50,000+ installs apply_filters( 'login_language_dropdown_args', $args ) modules/login-customizer/templates/udb-login-page.php:292
  7. Login Page Styler icon Login Page Styler2,000+ installs apply_filters( 'login_language_dropdown_args', $args ) lpsnewLogin.php:245
  8. Loginfy icon Loginfy2,000+ installs apply_filters( 'login_language_dropdown_args', $args ) Inc/Core/Inc/loginfy-login-template.php:355
  9. Login Page Customizer icon Login Page Customizer1,000+ installs apply_filters( 'login_language_dropdown_args', $args ) login-page-customizer/customize/template-lpc-custom-login-page.php:317
  10. Fuerte-WP icon Fuerte-WP80+ installs apply_filters( 'login_language_dropdown_args', $args ) includes/two-factor/includes/function.login-footer.php:94
  11. Loginify icon Loginify20+ installs apply_filters( 'login_language_dropdown_args', $args ) templates/loginify-page.php:128
  12. Dashboard Plus icon Dashboard PlusFewer than 10 installs apply_filters( 'login_language_dropdown_args', $args ) modules/customizer/templates/dashplu-login-page.php:334

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.