upload_is_user_over_quota
函数
upload_is_user_over_quota ( $display_message = true )
- 参数
-
-
(bool)
$display_message
Optional. If set to true and the quota is exceeded, a warning message is displayed. Default true.- Required: 否
- Default: true
-
(bool)
- 返回值
-
- (bool) True if user is over upload space quota, otherwise false.
- 定义位置
-
-
wp-admin/includes/ms.php
, line 224
-
wp-admin/includes/ms.php
- 引入
- –
- 弃用
- –
Check whether a site has used its allotted upload space.
function upload_is_user_over_quota( $display_message = true ) { if ( get_site_option( 'upload_space_check_disabled' ) ) { return false; } $space_allowed = get_space_allowed(); if ( ! is_numeric( $space_allowed ) ) { $space_allowed = 10; // Default space allowed is 10 MB. } $space_used = get_space_used(); if ( ( $space_allowed - $space_used )
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。