做一个休息请求。
rest_do_request(WP_REST_Request|string $request)
说明(Description)
主要用于通过WP_REST_服务器路由内部请求。
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $request | (WP_REST_Request | string) | 必需 | 请求。 |
返回(Return)
(WP_REST_Response)静止响应。
| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 4.4.0 | wp-includes/rest-api.php:429 | 1 function | 2 |
笔记(Notes)
rest_do_请求可用于内部发送rest API请求并返回其响应对象。您需要先创建请求对象。





















