login_display_language_dropdown
Filter HookDescription
Filters whether to display the Language selector on the login screen.Hook Information
| File Location |
wp-login.php
View on GitHub
|
| Hook Type | Filter |
| Line Number | 370 |
Hook Parameters
| Type | Name | Description |
|---|---|---|
bool
|
$display
|
Whether to display the Language selector on the login screen. |
Usage Examples
Basic Usage
<?php
// Hook into login_display_language_dropdown
add_filter('login_display_language_dropdown', 'my_custom_filter', 10, 1);
function my_custom_filter($display) {
// Your custom filtering logic here
return $display;
}
Source Code Context
wp-login.php:370
- How this hook is used in WordPress core
<?php
365 *
366 * @since 5.9.0
367 *
368 * @param bool $display Whether to display the Language selector on the login screen.
369 */
370 apply_filters( 'login_display_language_dropdown', true )
371 ) {
372 $languages = get_available_languages();
373
374 if ( ! empty( $languages ) ) {
375 ?>
PHP Documentation
<?php
/**
* Filters whether to display the Language selector on the login screen.
*
* @since 5.9.0
*
* @param bool $display Whether to display the Language selector 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.