wp_is_large_network filter-hook . WP 3.3.0
Filters whether the network is considered large.
Usage
add_filter( 'wp_is_large_network', 'filter_function_name_1558', 10, 4 ); function filter_function_name_1558( $is_large_network, $component, $count, $network_id ){ // filter... return $is_large_network; }
- $is_large_network(true/false)
- 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.
Changelog
Since 3.3.0 | Introduced. |
Since 4.8.0 | The $network_id parameter has been added. |
Where the hook is called
wp_is_large_network
wp-includes/ms-functions.php 2758
return apply_filters( 'wp_is_large_network', $count > 10000, 'users', $count, $network_id );
wp-includes/ms-functions.php 2764
return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count, $network_id );