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

---

# apply_filters( ‘get_space_allowed’, int $space_allowed )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/get_space_allowed/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/get_space_allowed/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/get_space_allowed/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/get_space_allowed/?output_format=md#changelog)

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

Filters the upload quota for the current site.

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

 `$space_allowed`int

Upload quota in megabytes for the current blog.

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

    ```php
    return apply_filters( 'get_space_allowed', $space_allowed );
    ```

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

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

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

Returns the upload quota for the current blog.

  |

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

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

## User Contributed Notes

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