WordPress at Your Fingertips
function is not described

fix_import_form_size() WP 3.0.0

Get the remaining upload space for this site.

No Hooks.

Return

Int. Max size in bytes

Usage

fix_import_form_size( $size );
$size(int) (required)
Current max size in bytes

Changelog

Since 3.0.0 Introduced.

Code of fix_import_form_size() WP 5.8.2

function fix_import_form_size( $size ) {
	if ( upload_is_user_over_quota( false ) ) {
		return 0;
	}
	$available = get_upload_space_available();
	return min( $size, $available );
}