download_url_error_max_body_size filter-hookWP 5.1.0

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

download_url()
download_url_error_max_body_size
wp-admin/includes/file.php 1175
$response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES );

Where the hook is used in WordPress

Usage not found.