get_space_allowed

Definition:
function get_space_allowed() {}

Returns the upload quota for the current blog.

Return values

returns:Quota

Source code

function get_space_allowed() {

	$space_allowed = get_option( 'blog_upload_space' );

	if ( $space_allowed == false )

		$space_allowed = get_site_option( 'blog_upload_space' );

	if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )

		$space_allowed = 50;



	return $space_allowed;

}

1703

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: