enable_login_autofocus

enable_login_autofocus

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.5.1

apply_filters('enable_login_autofocus') is found 1 times:

  • /wp-login.php line 1508
    		 * @since 4.8.0
    		 *
    		 * @param bool $print Whether to print the function call. Default true.
    		 */
    		if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {
    			$login_script .= "wp_attempt_focus();\n";
    		}
    
    		// Run `wpOnload()` if defined.
    		$login_script .= "if ( typeof wpOnload === 'function' ) { wpOnload() }";