enable_login_autofocus хук-фильтр . WP 4.8.0
Filters whether to print the call to wp_attempt_focus() on the login screen.
Использование
add_filter( 'enable_login_autofocus', 'filter_function_name_3615' ); function filter_function_name_3615( $print ){ // filter... return $print; }
- $print(true/false)
- Whether to print the function call.
По умолчанию: true
Список изменений
С версии 4.8.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
enable_login_autofocus
wp-login.php 1530
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {