WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/wpmu checkAvailableSpace

Description

Determines if the available space defined by the admin has been exceeded by the user

Parameters

None.

Return Values

(null)

Usage

<?php wpmu_checkAvailableSpace(); ?>

Notes

If the amount of space remaining is less than or equal to 0 then it defines 'DISABLE_UPLOADS' to 'true' and sets an error message for printing in 'DISABLE_UPLOADS_MESSAGE'.

define( 'DISABLE_UPLOADS', true );
define( 'DISABLE_UPLOADS_MESSAGE', __('Sorry, you must delete files before you can upload any more.') );