auth_cookie_bad_hash

动作钩子


do_action( 'auth_cookie_bad_hash', $cookie_elements )
参数
  • (string[])
    $cookie_elements
    {
    Authentication cookie components. None of the components should be assumed
    to be valid as they come directly from a client-provided cookie value.

    @type string $username User’s username.
    @type string $expiration The time the cookie expires as a UNIX timestamp.
    @type string $token User’s session token used.
    @type string $hmac The security hash for the cookie.
    @type string $scheme The cookie scheme to use.
    }

    Required:
定义位置
  • wp-includes/pluggable.php
    , line 784
引入
2.7.0
弃用

如果遇到一个坏的认证cookie哈希值,则触发。

do_action( 'auth_cookie_bad_hash', $cookie_elements );