rest_authorization_required_code
rest_authorization_required_code ( No parameters )
Returns:- (int) 401 if the user is not logged in, 403 if the user is logged in.
Defined at: - Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
Description
Returns a contextual HTTP error code for authorization failure.