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

Filters whether the network is considered large.

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.

Source

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

Changelog

VersionDescription
4.8.0The $network_id parameter has been added.
3.3.0Introduced.

User Contributed Notes

  1. Skip to note 2 content

    Whether the network has more than 5,000 users/sites instead of 10,000:

    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 );

    Source: https://generatewp.com/snippet/9XaNVan/

You must log in before being able to contribute a note or feedback.