download_url_error_max_body_size
Filters the maximum error response body size in download_url().
Usage
add_filter( 'download_url_error_max_body_size', 'wp_kama_download_url_error_max_body_size_filter' ); /** * Function for `download_url_error_max_body_size` filter-hook. * * @param int $size The maximum error response body size. * * @return int */ function wp_kama_download_url_error_max_body_size_filter( $size ){ // filter... return $size; }
- $size(int)
- The maximum error response body size.
Default: 1 KB
Changelog
Since 5.1.0 | Introduced. |
Where the hook is called
wp-admin/includes/file.php 1206
$response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES );