download_url_error_max_body_size хук-фильтр . WP 5.1.0
Filters the maximum error response body size in download_url().
Использование
add_filter( 'download_url_error_max_body_size', 'filter_function_name_1140' ); function filter_function_name_1140( $size ){ // filter... return $size; }
- $size(число)
- The maximum error response body size.
По умолчанию: 1 KB
Список изменений
С версии 5.1.0 | Введена. |
Где вызывается хук
wp-admin/includes/file.php 1082
$response_size = apply_filters( 'download_url_error_max_body_size', KB_IN_BYTES );