确定当前博客的配额中是否还有任何上传空间。
原型
is_upload_space_available()
返回值
(bool)
如果空间可用则为True,否则为false。
源文件
路径:wp-includes/ms-functions.php
<?php
...
function is_upload_space_available() {
if ( get_site_option( 'upload_space_check_disabled' ) )
return true;
return (bool) get_upload_space_available();
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/is_upload_space_available/