apply_filters( ‘rest_prepare_url_details’, WP_REST_Response $response, string $url, WP_REST_Request $request, string $remote_url_response )

In this article

Filters the URL data for the response.

Parameters

$responseWP_REST_Response
The response object.
$urlstring
The requested URL.
$requestWP_REST_Request
Request object.
$remote_url_responsestring
HTTP response body from the remote URL.

Source

return apply_filters( 'rest_prepare_url_details', $response, $url, $request, $remote_url_response );

Changelog

VersionDescription
5.9.0Introduced.

User Contributed Notes

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