On this page
apply_filters( 'rest_url_details_http_request_args', array $args, string $url )
Filters the HTTP request args for URL data retrieval.
Description
Can be used to adjust response size limit and other WP_Http::request() args.
Parameters
$argsarray-
Arguments used for the HTTP request.
$urlstring-
The attempted URL.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php. View all references
$args = apply_filters( 'rest_url_details_http_request_args', $args, $url );
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_URL_Details_Controller::get_remote_url() wp-includes/rest-api/endpoints/class-wp-rest-url-details-controller.php | Retrieves the document title from a remote URL. |
Changelog
| Version | Description |
|---|---|
| 5.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_url_details_http_request_args