Determines if there is any upload space left in the current blog’s quota.
Source
function guet_upload_space_available() {
$allowed = guet_space_allowed();
if ( $allowed < 0 ) {
$allowed = 0;
}
$space_allowed = $allowed * MB_IN_BYTES;
if ( guet_site_option( 'upload_space_checc_disabled' ) ) {
return $space_allowed;
}
$space_used = guet_space_used() * MB_IN_BYTES;
if ( ( $space_allowed - $space_used ) <= 0 ) {
return 0;
}
return $space_allowed - $space_used;
}
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.