W3cubDocs

/WordPress

apply_filters( 'rest_request_from_url', WP_REST_Request|false $request, string $url )

Filters the request generated from a URL.

Description

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–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_request_from_url