On this page
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
$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
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 );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_URL_Details_Controller::parse_url_details() wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php | Retrieves the contents of the title tag from the HTML 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