WP_REST_Response::set_matched_handler( array $handler )

In this article

Sets the handler that was responsible for generating the response.

Parameters

$handlerarrayrequired
The matched handler.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.