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

File: wp-includes/rest-api/class-wp-rest-request.php

View on Trac

Changelog

Version Description
4.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_request_from_url