enable_login_autofocus filter-hook . WP 4.8.0
Filters whether to print the call to wp_attempt_focus() on the login screen.
Usage
add_filter( 'enable_login_autofocus', 'filter_function_name_224' ); function filter_function_name_224( $print ){ // filter... return $print; }
- $print(true/false)
- Whether to print the function call.
Default: true
Changelog
Since 4.8.0 | Introduced. |
Where the hook is called
In file: /wp-login.php
enable_login_autofocus
wp-login.php 1530
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {