Title: import_upload_size_limit
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘import_upload_size_limit’, int $max_upload_size )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#description)
    - [See also](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#see-also)
 * [Parameters](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#wp--skip-link--target)

Filters the maximum allowed upload size for import files.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#description)󠁿

### 󠀁[See also](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#see-also)󠁿

 * [wp_max_upload_size()](https://developer.wordpress.org/reference/functions/wp_max_upload_size/)

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#parameters)󠁿

 `$max_upload_size`int

Allowed upload size. Default 1 MB.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#source)󠁿

    ```php
    $bytes      = apply_filters( 'import_upload_size_limit', wp_max_upload_size() );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-admin/includes/template.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/template.php#L1014)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/template.php#L1014-L1014)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_import_upload_form()](https://developer.wordpress.org/reference/functions/wp_import_upload_form/)`wp-admin/includes/template.php` |

Outputs the form used by the importers to accept the data to be imported.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/import_upload_size_limit/?output_format=md#changelog)󠁿

| Version | Description | 
| [2.3.0](https://developer.wordpress.org/reference/since/2.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fimport_upload_size_limit%2F)
before being able to contribute a note or feedback.