WordPress at a glance
функция не описана

WP_REST_Request::set_route() public WP 4.4.0

Sets the route that matched the request.

It's a method of the class: WP_REST_Request{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WP_REST_Request = new WP_REST_Request();
$WP_REST_Request->set_route( $route );
$route(string) (required)
Route matching regex.

Changelog

Since 4.4.0 Introduced.

Код WP_REST_Request::set_route() WP 5.5.1

<?php
public function set_route( $route ) {
	$this->route = $route;
}