get_space_allowed

The timeline below displays how wordpress function get_space_allowed has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU (3.0.0)
 *
 * @return int Quota in megabytes.
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (!is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    /**
     * Filters the upload quota for the current site.
     *
     * @since 3.7.0
     *
     * @param int $space_allowed Upload quota in megabytes for the current blog.
     */
    return apply_filters('get_space_allowed', $space_allowed);
}

WordPress Version: 4.9

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU (3.0.0)
 *
 * @return int Quota in megabytes
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (!is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    /**
     * Filters the upload quota for the current site.
     *
     * @since 3.7.0
     *
     * @param int $space_allowed Upload quota in megabytes for the current blog.
     */
    return apply_filters('get_space_allowed', $space_allowed);
}

WordPress Version: 4.6

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU
 *
 * @return int Quota in megabytes
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (!is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    /**
     * Filters the upload quota for the current site.
     *
     * @since 3.7.0
     *
     * @param int $space_allowed Upload quota in megabytes for the current blog.
     */
    return apply_filters('get_space_allowed', $space_allowed);
}

WordPress Version: 4.4

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU
 *
 * @return int Quota in megabytes
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (!is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    /**
     * Filter the upload quota for the current site.
     *
     * @since 3.7.0
     *
     * @param int $space_allowed Upload quota in megabytes for the current blog.
     */
    return apply_filters('get_space_allowed', $space_allowed);
}

WordPress Version: 3.8

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU
 *
 * @return int Quota in megabytes
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (empty($space_allowed) || !is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    /**
     * Filter the upload quota for the current site.
     *
     * @since 3.7.0
     *
     * @param int $space_allowed Upload quota in megabytes for the current blog.
     */
    return apply_filters('get_space_allowed', $space_allowed);
}

WordPress Version: 3.7

/**
 * Returns the upload quota for the current blog.
 *
 * @since MU
 *
 * @return int Quota in megabytes
 */
function get_space_allowed()
{
    $space_allowed = get_option('blog_upload_space');
    if (!is_numeric($space_allowed)) {
        $space_allowed = get_site_option('blog_upload_space');
    }
    if (empty($space_allowed) || !is_numeric($space_allowed)) {
        $space_allowed = 100;
    }
    return apply_filters('get_space_allowed', $space_allowed);
}