# get_space_allowed()

URL: https://chugunov.pro/api-wordpress/functions/get_space_allowed/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: MU (3.0.0).

## Сигнатура

```php
get_space_allowed(): int
```

## Описание

Возвращает квоту на загрузку файлов для текущего блога.

## Возвращаемое значение

`int`

## Исходный код

Файл: `wp-includes/ms-functions.php:2614`

```php
function get_space_allowed() {
	$space_allowed = get_option( 'blog_upload_space' );

	if ( ! is_numeric( $space_allowed ) ) {
		$space_allowed = get_site_option( 'blog_upload_space' );
	}

	if ( ! is_numeric( $space_allowed ) ) {
		$space_allowed = 100;
	}

	/**
	 * Filters the upload quota for the current site.
	 *
	 * @since 3.7.0
	 *
	 * @param int $space_allowed Upload quota in megabytes for the current blog.
	 */
	return apply_filters( 'get_space_allowed', $space_allowed );
}
```

## История изменений

- MU (3.0.0) — Introduced.

## Связанные

Использует: [`apply_filters`](https://chugunov.pro/api-wordpress/functions/apply_filters/), [`get_site_option`](https://chugunov.pro/api-wordpress/functions/get_site_option/), [`get_option`](https://chugunov.pro/api-wordpress/functions/get_option/).
Используется в: [`upload_is_user_over_quota`](https://chugunov.pro/api-wordpress/functions/upload_is_user_over_quota/), [`display_space_usage`](https://chugunov.pro/api-wordpress/functions/display_space_usage/), [`wp_dashboard_quota`](https://chugunov.pro/api-wordpress/functions/wp_dashboard_quota/), [`multisite_over_quota_message`](https://chugunov.pro/api-wordpress/functions/multisite_over_quota_message/), [`wpmu_checkAvailableSpace`](https://chugunov.pro/api-wordpress/functions/wpmu_checkavailablespace/), [`get_upload_space_available`](https://chugunov.pro/api-wordpress/functions/get_upload_space_available/), `wp_xmlrpc_server::mw_newMediaObject`.

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/get_space_allowed/
