get_space_allowed
云策文档标注
概述
get_space_allowed 是一个 WordPress 过滤器,用于修改当前站点的上传配额(以兆字节为单位)。它允许开发者通过 apply_filters 钩子调整空间限制。
关键要点
- 这是一个过滤器钩子,用于过滤当前站点的上传配额。
- 参数 $space_allowed 表示当前博客的上传配额(以兆字节为单位)。
- 在 WordPress 3.7.0 版本中引入。
原文内容
Filters the upload quota for the current site.
Parameters
$space_allowedint-
Upload quota in megabytes for the current blog.
Source
return apply_filters( 'get_space_allowed', $space_allowed );
Changelog
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |