On this page
apply_filters( 'download_url_error_max_body_size', int $size )
Filters the maximum error response body size in download_url().
Description
See also
Parameters
$sizeint-
The maximum error response body size. Default 1 KB.
Source
File: wp-admin/includes/file.php. View all references
$response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES );
Related
Used By
| Used By | Description |
|---|---|
| download_url() wp-admin/includes/file.php | Downloads a URL to a local temporary file using the WordPress HTTP API. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/download_url_error_max_body_size