WP_REST_Response::get_matched_handler()publicWP 4.4.0

Retrieves the handler that was used to generate the response.

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

Хуков нет.

Возвращает

null|Массив. The handler that was used to create the response.

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

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

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

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

Код WP_REST_Response::get_matched_handler() WP 6.5.2

public function get_matched_handler() {
	return $this->matched_handler;
}