is_upload_space_available()
is_upload_space_available()
确定当前博客配额中是否还有任何上载空间。
Determines if there is any upload space left in the current blog’s quota.
返回(Return)
(bool)如果空间可用,则为True,否则为false。
源码(Source)
/** * Determines if there is any upload space left in the current blog's quota. * * @since 3.0.0 * @return bool True if space is available, false otherwise. */ function is_upload_space_available() { if ( get_site_option( 'upload_space_check_disabled' ) ) return true; return (bool) get_upload_space_available(); }
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.0.0 | wp-includes/ms-functions.php:2553 | 4 | 2 |
is_upload_space_available() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_upload_space_available/