is_upload_space_available()判断上传空间是否达到上限

目录

描述

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

is_upload_space_available() 描述

用法

<?php is_upload_space_available() ?>

is_upload_space_available() 用法

参数

This function does not accept any parameters

is_upload_space_available() 参数

示例

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */

is_upload_space_available() 示例

历史

添加于 版本: 3.0.0

is_upload_space_available() 历史

源文件

is_upload_space_available() 函数的代码位于 wp-includes/ms-functions.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * 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();
}

is_upload_space_available() 源文件

相关