login_language_dropdown_args
Filters default arguments for the Languages select input on the login screen.
The arguments get passed to the wp_dropdown_languages() function.
Использование
add_filter( 'login_language_dropdown_args', 'wp_kama_login_language_dropdown_args_filter' ); /** * Function for `login_language_dropdown_args` filter-hook. * * @param array $args Arguments for the Languages select input on the login screen. * * @return array */ function wp_kama_login_language_dropdown_args_filter( $args ){ // filter... return $args; }
- $args(массив)
- Arguments for the Languages select input on the login screen.
Список изменений
С версии 5.9.0 | Введена. |
Где вызывается хук
wp-login.php 402
wp_dropdown_languages( apply_filters( 'login_language_dropdown_args', $args ) );