apply_filters( 'wp_is_large_network', bool $is_large_network, string $component, int $count, int $network_id )
- Since
- 3.3.0, 4.8.0
Filters whether the network is considered large.
Compatibility
- WordPress
- since 4.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$is_large_networkbool- Whether the network has more than 10000 users or sites.
$componentstring- The component to count. Accepts 'users', or 'sites'.
$countint- The count of items for the component.
$network_idint- The ID of the network being checked.
Where this hook fires · 2
wp-includes/ms-functions.php:2672wp_is_large_network()wp-includes/ms-functions.php:2678wp_is_large_network()
Source code
* * @param bool $is_large_network Whether the network has more than 10000 users or sites. * @param string $component The component to count. Accepts 'users', or 'sites'. * @param int $count The count of items for the component. * @param int $network_id The ID of the network being checked. */ return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id ); } $count = get_blog_count( $network_id ); /** This filter is documented in wp-includes/ms-functions.php */ return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count, $network_id );Changelog
Introduced in 3.3.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
4.8.0
The
$network_id parameter has been added.from the docblock3.3.0
Introduced.from the docblock
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.