wp_is_large_network

Filters whether the network is considered large.

Description

apply_filters( 'wp_is_large_network', (number) $count_10000, (string) $users, (number) $count ); 

Parameters (3)

0. $count_10000 (number)
Whether the network has more than 10000 users or sites.
1. $users (string) => 'users'
The component to count. Accepts users,, or sites..
2. $count (number)
The count of items for the component.

Usage

To run the hook, copy the example below.
  1. $count_10000 = apply_filters( 'wp_is_large_network', $count_10000, $users, $count ); 
  2.  
  3. if ( !empty( $count_10000 ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the wp_is_large_network callback 
  2. function filter_wp_is_large_network( $count_10000, $users, $count ) { 
  3. // make filter magic happen here... 
  4. return $count_10000
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'wp_is_large_network', 'filter_wp_is_large_network', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'wp_is_large_network', 'filter_wp_is_large_network', 10, 3 ); 

Defined (2)

The filter is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. return apply_filters( 'wp_is_large_network', $count > 10000, 'users', $count ); 
  1. return apply_filters( 'wp_is_large_network', $count > 10000, 'sites', $count );