rest_authorization_required_code()
最后更新于:2021-11-27 23:33:33
rest_authorization_required_code()响应s a contextual HTTP error code for authorization failure.
响应
(int) 401 if the user is not logged in, 403 if the user is logged in.
源文件
文件: gc-includes/rest-api.php
function rest_authorization_required_code() {
return is_user_logged_in() ? 403 : 401;
}