rest_request_from_url

Advertisement

Summery Summery

Filters the request generated from a URL.

Syntax Syntax

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

Parameters 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 Source

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.