Title: wp_is_large_network
Published: April 25, 2014
Last modified: August 20, 2026

---

# apply_filters( ‘wp_is_large_network’, bool $is_large_network, string $component, int $count, int $network_id )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#user-contributed-notes)

Filters whether the network is considered large.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#parameters)󠁿

 `$is_large_network`bool

Whether the network has more than 10000 users or sites.

`$component`string

The component to count. Accepts `'users'`, or `'sites'`.

`$count`int

The count of items for the component.

`$network_id`int

The ID of the network being checked.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#source)󠁿

    ```php
    return apply_filters( 'wp_is_large_network', $is_large_network, 'users', $count, $network_id );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ms-functions.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/ms-functions.php#L2748)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/ms-functions.php#L2748-L2748)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_is_large_network()](https://developer.wordpress.org/reference/functions/wp_is_large_network/)`wp-includes/ms-functions.php` |

Determines whether or not we have a large network.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.8.0](https://developer.wordpress.org/reference/since/4.8.0/) | The `$network_id` parameter has been added. | 
| [3.3.0](https://developer.wordpress.org/reference/since/3.3.0/) | Introduced. |

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/wp_is_large_network/?output_format=md#comment-content-2385)
 2.   [Rami Yushuvaev](https://profiles.wordpress.org/ramiy/)  [  9 years ago  ](https://developer.wordpress.org/reference/hooks/wp_is_large_network/#comment-2385)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_is_large_network%2F%23comment-2385)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_is_large_network%2F%23comment-2385)
 4. Whether the network has more than 5,000 users/sites instead of 10,000:
 5.     ```php
        function custom_large_network( $is_large_network, $component, $count, $network_id ) {
        	return ( $count > 5000);
        }
        add_filter( 'wp_is_large_network', 'custom_large_network', 10, 4 );
        ```
    
 6. Source: [https://generatewp.com/snippet/9XaNVan/](https://generatewp.com/snippet/9XaNVan/)
 7.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_is_large_network%2F%3Freplytocom%3D2385%23feedback-editor-2385)

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_is_large_network%2F)
before being able to contribute a note or feedback.