enable_login_autofocus WordPress Filter Hook

The enable_login_autofocus Wordpress hook allows you to automatically focus on the login field when the page is loaded. This can be useful for users who regularly login to your site, as it saves them from having to click on the login field.

apply_filters( 'enable_login_autofocus', bool $print ) #

Filters whether to print the call to wp_attempt_focus() on the login screen.


Parameters

$print

(bool)Whether to print the function call. Default true.


Top ↑

Source

File: wp-login.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.