WordPress at a glance
function is not described

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{}

No Hooks.

Return

null. Nothing.

Usage

$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.

Code of WP_REST_Response::set_matched_handler() WP 5.7.2

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