enable_login_autofocus хук-фильтрWP 4.8.0

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

Использование

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.
По умолчанию: true

Список изменений

С версии 4.8.0 Введена.

Где вызывается хук

В файле: /wp-login.php
enable_login_autofocus
wp-login.php 1606
if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) {

Где используется хук в WordPress

Использование не найдено.