wppaste
WordPress

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

Since
5.9.0
Filters the URL data for the response.

Compatibility

WordPress
since 5.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

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.

Where this hook fires · 1

  • wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php:187WP_REST_URL_Details_Controller::parse_url_details()

Source code

		 *		 * @param WP_REST_Response $response            The response object.		 * @param string           $url                 The requested URL.		 * @param WP_REST_Request  $request             Request object.		 * @param string           $remote_url_response HTTP response body from the remote URL.		 */		return apply_filters( 'rest_prepare_url_details', $response, $url, $request, $remote_url_response );	} 	/**	 * Checks whether a given request has permission to read remote URLs.	 *	 * @since 5.9.0

Changelog

Introduced in 5.9.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.