rest_do_request

Advertisement

Summery Summery

Do a REST request.

Syntax Syntax

rest_do_request( WP_REST_Request|string $request )

Description Description

Used primarily to route internal requests through WP_REST_Server.

Parameters Parameters

$request

(Required) Request.

Return Return

(WP_REST_Response) REST response.

Source Source

File: wp-includes/rest-api.php

	 * @param string $url     REST URL.
	 * @param string $path    REST route.
	 * @param int    $blog_id Blog ID.
	 * @param string $scheme  Sanitization scheme.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply