wphooks.info - enable_login_autofocus

enable_login_autofocus

*** New in v4.8 ***

The hook occurs in the following file:

/wp-login.php:
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
}, 200);
}

/**
 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
 *
 * @since 4.8.0
 *
 * @param bool $print Whether to print the function call. Default true.
 */
<?php if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
wp_attempt_focus();
<?php } ?>
if(typeof wpOnload=='function')wpOnload();
<?php if ( $interim_login ) { ?>
(function(){
try {
	var i, links = document.getElementsByTagName('a');
	for ( i in links ) {
		if ( links[i].href )