enable_login_autofocus filter-hookWP 4.8.0

Usage

add_filter( 'enable_login_autofocus', 'wp_kama_enable_login_autofocus_filter' );

/**
 * Function for `enable_login_autofocus` filter-hook.
 * 
 * @param bool $print Whether to print the function call.
 *
 * @return bool
 */
function wp_kama_enable_login_autofocus_filter( $print ){

	// filter...
	return $print;
}
$print(true|false)
Whether to print the function call.
Default: true

Changelog

Since 4.8.0 Introduced.

Where the hook is called

In file: /wp-login.php
enable_login_autofocus
wp-login.php 1499
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {

Where the hook is used in WordPress

Usage not found.