wpseek.com
WordPress开发者和主题制作者的搜索引擎



auth_cookie_valid › WordPress动作钩子

Since2.7.0
已弃用n/a
do_action( 'auth_cookie_valid', $cookie_elements, $user )
参数: (2)
  • (string[]) $cookie_elements { Authentication cookie components. @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: Yes
  • (WP_User) $user User object.
    Required: Yes
定义在:
文档:

Fires once an authentication cookie has been validated.





源码

do_action( 'auth_cookie_valid', $cookie_elements, $user );