rest_cookie_check_errors ( $result )

  • (WP_Error|mixed) result Error from another authentication handler, null if we should handle it, or another value if not.
  • (WP_Error|mixed|bool) WP_Error if the cookie is invalid, the $result, otherwise true.
Defined at:


Checks for errors when using cookie-based authentication.WordPress' built-in cookie authentication is always active for logged in users. However, the API has to check nonces for each request to ensure users are not vulnerable to CSRF.

Related Functions

rest_cookie_collect_status, get_core_checksums, rest_application_password_check_errors, is_client_error, ms_cookie_constants

Top Google Results

User discussions

wpseek mobile