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:
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.
-
LoginPress200,000+ installs
apply_filters( 'login_language_dropdown_args', $args )include/template-loginpress.php:360 -
Two Factor100,000+ installs
apply_filters( 'login_language_dropdown_args', $args )includes/function.login-footer.php:93 -
Hide My WP Ghost100,000+ installs
apply_filters( 'login_language_dropdown_args', $args )view/wplogin/footer.php:115 -
Custom Login Page Customizer80,000+ installs
apply_filters( 'login_language_dropdown_args', $args )src/Customizer/template-login-customizer.php:173 -
WP Hide & Security Enhancer50,000+ installs
apply_filters( 'login_language_dropdown_args', $args )modules/components/login_2fa_template_login_footer.php:100 -
Ultimate Dashboard50,000+ installs
apply_filters( 'login_language_dropdown_args', $args )modules/login-customizer/templates/udb-login-page.php:292 -
Login Page Styler2,000+ installs
apply_filters( 'login_language_dropdown_args', $args )lpsnewLogin.php:245 -
Loginfy2,000+ installs
apply_filters( 'login_language_dropdown_args', $args )Inc/Core/Inc/loginfy-login-template.php:355 -
Login Page Customizer1,000+ installs
apply_filters( 'login_language_dropdown_args', $args )login-page-customizer/customize/template-lpc-custom-login-page.php:317 -
Fuerte-WP80+ installs
apply_filters( 'login_language_dropdown_args', $args )includes/two-factor/includes/function.login-footer.php:94 -
Loginify20+ installs
apply_filters( 'login_language_dropdown_args', $args )templates/loginify-page.php:128 -
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.