Summery Summery
Returns a contextual HTTP error code for authorization failure.
Syntax Syntax
Return Return
(integer) 401 if the user is not logged in, 403 if the user is logged in.
Source Source
File: wp-includes/rest-api.php
$status_type = current_action();
if ( 'auth_cookie_valid' !== $status_type ) {
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |