Core Function
View Source on Trac ↗ rest_cookie_check_errors()
rest_cookie_check_errors( mixed $result ) Checks for errors when using cookie-based authentication.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (WP_Error | mixed) $result Error from another authentication handler, null if we should handle it, or another value if not. Required |
Return Value
((WP_Error)
| mixed | bool) WP_Error if the cookie is invalid, the $result, otherwise true.
Function Information
Since Version
4.4.0
Source File
wp-includes/rest-api.php
Advertisement