WP_REST_Response::set_matched_route( string $route )

In this article

Sets the route (regex for path) that caused the response.

Parameters

$routestringrequired
Route name.

Source

public function set_matched_route( $route ) {
	$this->matched_route = $route;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

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