Function Reference/wp validate auth cookie
Validates authentication cookie.
The checks include making sure that the authentication cookie is set and
pulling in the contents (if $cookie is not used).
Makes sure the cookie is not expired. Verifies the hash in cookie is what is
should be and compares the two.
- (string) (optional) Optional. If used, will validate contents instead of cookie's
- (string) (optional) Optional. The cookie scheme to use: auth, secure_auth, or logged_in
- false (bool)
- False if invalid cookie
- User ID (int)
- User ID on success
wp_validate_auth_cookie() is located in