WP_REST_Request::set_route

Advertisement

Summery Summery

Sets the route that matched the request.

Syntax Syntax

WP_REST_Request::set_route( string $route )

Parameters Parameters

$route

(Required) Route matching regex.

Source Source

File: wp-includes/rest-api/class-wp-rest-request.php

	 *
	 * @return string Route matching regex.
	 */

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply