WordPress at a glance
function is not described

upload_size_limit_filter() WP 3.0.0

Filters the maximum upload file size allowed, in bytes.

No Hooks.


Int. Upload size limit in bytes.


upload_size_limit_filter( $size );
$size(int) (required)
Upload size limit in bytes.

Code of upload size limit filter: wp-includes/ms-functions.php VER 5.0.3

function upload_size_limit_filter( $size ) {
	$fileupload_maxk = KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 );
	if ( get_site_option( 'upload_space_check_disabled' ) )
		return min( $size, $fileupload_maxk );

	return min( $size, $fileupload_maxk, get_upload_space_available() );