On this page
wpmu_checkAvailableSpace()
This function has been deprecated. Use is_upload_space_available() instead.
Determines if the available space defined by the admin has been exceeded by the user.
Description
See also
Source
File: wp-admin/includes/ms-deprecated.php. View all references
function wpmu_checkAvailableSpace() {
_deprecated_function( __FUNCTION__, '3.0.0', 'is_upload_space_available()' );
if ( ! is_upload_space_available() ) {
wp_die( sprintf(
/* translators: %s: Allowed space allocation. */
__( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
size_format( get_space_allowed() * MB_IN_BYTES )
) );
}
}
Related
Uses
| Uses | Description |
|---|---|
| size_format() wp-includes/functions.php | Converts a number of bytes to the largest unit the bytes will fit into. |
| is_upload_space_available() wp-includes/ms-functions.php | Determines if there is any upload space left in the current blog’s quota. |
| get_space_allowed() wp-includes/ms-functions.php | Returns the upload quota for the current blog. |
| __() wp-includes/l10n.php | Retrieves the translation of $text. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
| wp_die() wp-includes/functions.php | Kills WordPress execution and displays HTML page with an error message. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wpmu_checkavailablespace