WP_REST_Response::get_matched_route
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 REST Response::get matched route WP 6.8.3
public function get_matched_route() {
return $this->matched_route;
}