bp_is_large_install()

Checks whether the current installation is “large”.

Description

By default, an installation counts as "large" if there are 10000 users or more. Filter ‘bp_is_large_install’ to adjust.

Return

(bool)

Source

File: bp-core/bp-core-functions.php

4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
function bp_is_large_install() {
    // Use the Multisite function if available.
    if ( function_exists( 'wp_is_large_network' ) ) {
        $is_large = wp_is_large_network( 'users' );
    } else {
        $is_large = bp_core_get_total_member_count() > 10000;
    }
 
    /**
     * Filters whether the current installation is "large".
     *
     * @since BuddyPress 4.1.0
     *
     * @param bool $is_large True if the network is "large".
     */
    return (bool) apply_filters( 'bp_is_large_install', $is_large );
}

Changelog

Changelog
Version Description
BuddyPress 4.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.