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

WP_REST_Response::set_matched_handler() public WP 4.4.0

Sets the handler that was responsible for generating the response.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WP_REST_Response = new WP_REST_Response();
$WP_REST_Response->set_matched_handler( $handler );
$handler(array) (required)
The matched handler.

Changelog

Since 4.4.0 Introduced.

Код WP_REST_Response::set_matched_handler() WP 5.5.1

<?php
public function set_matched_handler( $handler ) {
	$this->matched_handler = $handler;
}