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

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.