rest_do_request
rest_do_request ( $request )
Parameters:- (WP_REST_Request|string) request Request.
Returns:- (WP_REST_Response) REST response.
Defined at: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Do a REST request.Used primarily to route internal requests through WP_REST_Server.