wordpress / latest / hooks / download_url_error_max_body_size.html

apply_filters( 'download_url_error_max_body_size', int $size )

Filters the maximum error response body size in download_url().

Description

See also

Parameters

$size int
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 );

Used By

Used By Description

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