function get_space_allowed() {}

Returns the upload quota for the current blog.

Return values


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;



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: Logo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: