enable_login_autofocus

过滤钩子


apply_filters( 'enable_login_autofocus', true )
参数
  • (bool)
    $print
    Whether to print the function call. Default true.
    Required:
定义位置
  • wp-login.php
    , line 1524
引入
4.8.0
弃用

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

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