enable_login_autofocus
Filters whether to print the call to wp_attempt_focus() on the login screen.
Usage
add_filter( 'enable_login_autofocus', 'wp_kama_enable_login_autofocus_filter' ); /** * Function for `enable_login_autofocus` filter-hook. * * @param bool $print Whether to print the function call. * * @return bool */ function wp_kama_enable_login_autofocus_filter( $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 1613
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {