Filter hook 'login_language_dropdown_args'

in WP Core File wp-login.php at line 408

View Source

login_language_dropdown_args

Filter Hook
Description
Filters default arguments for the Languages select input on the login screen. The arguments get passed to the wp_dropdown_languages() function.

Hook Information

File Location wp-login.php View on GitHub
Hook Type Filter
Line Number 408

Hook Parameters

Type Name Description
array $args Arguments for the Languages select input on the login screen.

Usage Examples

Basic Usage
<?php
// Hook into login_language_dropdown_args
add_filter('login_language_dropdown_args', 'my_custom_filter', 10, 1);

function my_custom_filter($args) {
    // Your custom filtering logic here
    return $args;
}

Source Code Context

wp-login.php:408 - How this hook is used in WordPress core
<?php
 403  					 *
 404  					 * @since 5.9.0
 405  					 *
 406  					 * @param array $args Arguments for the Languages select input on the login screen.
 407  					 */
 408  					wp_dropdown_languages( apply_filters( 'login_language_dropdown_args', $args ) );
 409  					?>
 410  
 411  					<?php if ( $interim_login ) { ?>
 412  						<input type="hidden" name="interim-login" value="1" />
 413  					<?php } ?>

PHP Documentation

<?php
/**
					 * Filters default arguments for the Languages select input on the login screen.
					 *
					 * The arguments get passed to the wp_dropdown_languages() function.
					 *
					 * @since 5.9.0
					 *
					 * @param array $args Arguments for the Languages select input on the login screen.
					 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-login.php
Related Hooks

Related hooks will be displayed here in future updates.