rest_request_from_url WordPress Filter Hook
The rest_request_from_url hook allows you to modify the request before it is sent to the REST API. This can be useful for adding query parameters or changing the request method.
apply_filters( 'rest_request_from_url',  WP_REST_Request|false $request ,  string $url  ) #
Filters the REST API request generated from a URL.
Parameters
- $request
 (WP_REST_Request|false)Generated request object, or false if URL could not be parsed.
- $url
 (string)URL the request was generated from.
Source
Changelog
| Version | Description | 
|---|---|
| 4.5.0 | Introduced. |