Summery Summery
Returns the upload quota for the current blog.
Syntax Syntax
Return Return
(int) Quota in megabytes
Source Source
File: wp-includes/ms-functions.php
}
/**
* Returns the space used by the current site.
*
* @since 3.5.0
*
* @return int Used space in megabytes.
*/
function get_space_used() {
/**
* Filters the amount of storage space used by the current site, in megabytes.
*
* @since 3.5.0
*
* @param int|false $space_used The amount of used space, in megabytes. Default false.
*/
$space_used = apply_filters( 'pre_get_space_used', false );
if ( false === $space_used ) {
$upload_dir = wp_upload_dir();
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |