upload_size_limit_filter

Definition:
function upload_size_limit_filter( $size ) {}

Parameters

  • $size

Return values

returns:of upload size limit in bytes

Source code

function upload_size_limit_filter( $size ) {

	$fileupload_maxk = 1024 * 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() );

}

3261

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: