is_upload_space_available() - WordPress 函数参考中文文档

返回介绍

is_upload_space_available()

发布于 2017-09-11 字数1386 浏览 946 评论 0

is_upload_space_available()

Determines if there is any upload space left in the current blog’s quota.


描述


返回值

(bool) True if space is available, false otherwise.


源代码

File: wp-includes/ms-functions.php

function is_upload_space_available() {
	if ( get_site_option( 'upload_space_check_disabled' ) )
		return true;

	return (bool) get_upload_space_available();
}

更新日志

Version 描述
3.0.0 Introduced.

相关函数

Uses

  • wp-includes/option.php:
    get_site_option()
  • wp-includes/ms-functions.php:
    get_upload_space_available()

Used By

  • wp-admin/includes/media.php:
    media_upload_form()
  • wp-admin/includes/ms-deprecated.php:
    wpmu_checkAvailableSpace()
  • wp-includes/media.php:
    wp_plupload_default_settings()
  • wp-includes/media-template.php:
    wp_print_media_templates()

User Contributed Notes

上一篇:is_uninstallable_plugin()

下一篇:is_user_admin()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!