Function: wp_is_large_network

wp_is_large_network( string $using, integer | null $network_id )

Whether or not we have a large network.

The default criteria for a large network is either more than 10,000 users or more than 10,000 sites. Plugins can alter this criteria using the \'wp_is_large_network' filter.

Parameters

Name Type(s) Default Value Description
$using string 'sites'

'sites or 'users'. Default is 'sites'.

$network_id integer | null null

ID of the network. Default is the current network.

Returns

boolean

True if the network meets the criteria for large. False otherwise.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.