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

In this article

Filters the REST API request generated from a URL.

Parameters

$requestWP_REST_Request|false
Generated request object, or false if URL could not be parsed.
$urlstring
URL the request was generated from.

Source

return apply_filters( 'rest_request_from_url', $request, $url );

Changelog

VersionDescription
4.5.0Introduced.

User Contributed Notes

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