wordpress / latest / functions / is_upload_space_available.html

is_upload_space_available(): bool

Determines if there is any upload space left in the current blog’s quota.

Return

bool True if space is available, false otherwise.

Source

File: wp-includes/ms-functions.php. View all references

function is_upload_space_available() {
	if ( get_site_option( 'upload_space_check_disabled' ) ) {
		return true;
	}

	return (bool) get_upload_space_available();
}

Uses

Uses Description

Changelog

Version Description
3.0.0 Introduced.

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_upload_space_available