apply_filters( ‘enable_login_autofocus’, bool $print )

In this article

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

Parameters

$printbool
Whether to print the function call. Default true.

Source

if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {

Changelog

VersionDescription
4.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.