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

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.