2020-05-02 / 3893阅 / 悠然
处理对服务器的OPTIONS请求。
这是在服务器代码之外进行的,因为它不遵循常规的路由映射。
(mixed)
(Required)
Current response, either response or null to indicate pass-through.
(WP_REST_Server)
(Required)
ResponseHandler instance (usually WP_REST_Server).
(WP_REST_Request)
(Required)
The request that was used to make current response.
(WP_REST_Response) Modified response, either response or null to indicate pass-through.