allow_password_reset

过滤钩子


apply_filters( 'allow_password_reset', $allow, $user->ID )
参数
  • (bool)
    $allow
    Whether to allow the password to be reset. Default true.
    Required:
  • (int)
    $user_id
    The ID of the user attempting to reset a password.
    Required:
定义位置
  • wp-includes/user.php
    , line 2884
引入
2.7.0
弃用

过滤是否允许重置密码。

$allow = apply_filters( 'allow_password_reset', $allow, $user->ID );