WP_REST_Response::get_matched_route()publicWP 4.4.0

Retrieves the route that was used.

Метод класса: WP_REST_Response{}

Хуков нет.

Возвращает

Строку. The matched route.

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

$WP_REST_Response = new WP_REST_Response();
$WP_REST_Response->get_matched_route();

Список изменений

С версии 4.4.0 Введена.

Код WP_REST_Response::get_matched_route() WP 6.5.2

public function get_matched_route() {
	return $this->matched_route;
}