функция
since MU (3.0.0)
get_space_allowed()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
get_space_allowed(): int
Описание
Возвращает квоту на загрузку файлов для текущего блога.
Возвращаемое значение
int
Исходный код
wp-includes/ms-functions.php:2614
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. |

