wphooks.info - enable_login_autofocus

enable_login_autofocus

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

/wp-login.php:
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
	}

	<?php
	/**
	 * 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.
	 */
	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 ) {