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

Filters the 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 GitHub



Changelog

Changelog
Version Description
WP-4.5.0 Introduced.