bp_is_large_install()
Checks whether the current installation is “large”.
Description Description
By default, an installation counts as "large" if there are 10000 users or more. Filter ‘bp_is_large_install’ to adjust.
Return Return
(bool)
Source 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 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 |
---|---|
4.1.0 | Introduced. |