wpmu_checkAvailableSpace()WP 1.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use is_upload_space_available() instead.

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

No Hooks.

Return

null. Nothing (null).

Usage

wpmu_checkAvailableSpace();

Notes

Changelog

Deprecated since 3.0.0 Use is_upload_space_available()

wpmu_checkAvailableSpace() code WP 6.5.2

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 )
		) );
	}
}