wordpress / latest / hooks / rest_prepare_url_details.html

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

Filters the URL data for the response.

Parameters

$response WP_REST_Response
The response object.
$url string
The requested URL.
$request WP_REST_Request
Request object.
$remote_url_response string
HTTP response body from the remote URL.

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php. View all references

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

Changelog

Version Description
5.9.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_prepare_url_details