WordPress at a glance
filter is not described

rest_request_from_url filter-hook . WP 4.5.0

Filters the request generated from a URL.

Usage

add_filter( 'rest_request_from_url', 'filter_function_name_368', 10, 2 );
function filter_function_name_368( $request, $url ){
	// filter...

	return $request;
}
$request(WP_REST_Request/false)
Generated request object, or false if URL could not be parsed.
$url(string)
URL the request was generated from.

Changelog

Since 4.5.0 Introduced.

Where the hook is called

WP_REST_Request::from_url()
rest_request_from_url
wp-includes/rest-api/class-wp-rest-request.php 1000
return apply_filters( 'rest_request_from_url', $request, $url );

Where the hook is used (in WP core)

Usage not found!