wp_validate_logged_in_cookie


wp_validate_logged_in_cookie ( $user_id )

Parameters:
  • (int|bool) user_id The user ID (or false) as received from the `determine_current_user` filter.
Returns:
  • (int|bool) User ID if validated, false otherwise. If a user ID from an earlier filter callback is received, that value is returned.
Defined at:

Description

Validates the logged-in cookie.Checks the logged-in cookie if the previous auth cookie could not be validated and parsed. This is a callback for the Array filter, rather than API.

Related Functions

wp_validate_auth_cookie, wp_validate_redirect, wp_ajax_logged_in, wp_validate_boolean, validate_blog_signup

Top Google Results

User discussions

wpseek mobile