check_password

过滤钩子


apply_filters( 'check_password', $check, $password, $hash, $user_id )
参数
  • (bool)
    $check
    Whether the passwords match.
    Required:
  • (string)
    $password
    The plaintext password.
    Required:
  • (string)
    $hash
    The hashed password.
    Required:
  • (string|int)
    $user_id
    User ID. Can be empty.
    Required:
定义位置
  • wp-includes/pluggable.php
    , line 2557
引入
2.5.0
弃用

过滤明文密码是否与加密密码相符。

return apply_filters( 'check_password', $check, $password, $hash, $user_id );