In their examples, they suggest using WP_Error to return errors, but WP_REST_Response has the HTTP status code as a second parameter, ...
確定! 回上一頁