wp_is_large_network

SummerySummery

Whether or not we have a large network.

Syntax

wp_is_large_network( string $using = 'sites', int|null $network_id = null )

DescriptionDescription

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.

ParametersParameters

$using

(string) (Optional) 'sites or 'users'. Default is 'sites'.

Default value: 'sites'

$network_id

(int|null) (Optional) ID of the network. Default is the current network.

Default value: null

ReturnReturn

(bool) True if the network meets the criteria for large. False otherwise.

SourceSource

File: wp-includes/ms-functions.php


			

ChangelogChangelog

Changelog
Version Description
4.8.0 The $network_id parameter has been added.
3.3.0 Introduced.
Scroll to Top