get_space_allowed() – Returns the upload quota for the current blog.

You appear to be a bot. Output may be restricted

Description

Returns the upload quota for the current blog.

Usage

$int = get_space_allowed();

Parameters

Returns

int Quota in megabytes

Source

File name: wordpress/wp-includes/ms-functions.php
Lines:

1 to 20 of 20
function get_space_allowed() {
  $space_allowed = get_option( 'blog_upload_space' );

  if ( ! is_numeric( $space_allowed ) ) {
    $space_allowed = get_site_option( 'blog_upload_space' );
  }

  if ( ! is_numeric( $space_allowed ) ) {
    $space_allowed = 100;
  }

  
/**
 * Filters the upload quota for the current site.
 *
 * @since 3.7.0
 *
 * @param int $space_allowed Upload quota in megabytes for the current blog.
 */
  return apply_filters( 'get_space_allowed', $space_allowed );
}
 

 View on GitHub View on Trac