is_upload_space_available

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

Description

is_upload_space_available(); 

Usage

  1. if ( !function_exists( 'is_upload_space_available' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = is_upload_space_available(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. function is_upload_space_available() { 
  2. if ( get_site_option( 'upload_space_check_disabled' ) ) 
  3. return true; 
  4.  
  5. return (bool) get_upload_space_available();