Summery Summery
Determines if there is any upload space left in the current blog’s quota.
Syntax Syntax
Return Return
(int) of upload space available in bytes
Source Source
File: wp-includes/ms-functions.php
* * @since MU (3.0.0) * * @return int Quota in megabytes */ 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.
Advertisement
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |