wp_is_large_network

wp_is_large_network

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('wp_is_large_network') is found 2 times:

  • /wp-includes/ms-functions.php line 2672
    		 * @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 );
    
  • /wp-includes/ms-functions.php line 2678
     
    	$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 );
    }
    
    /**
     * Retrieves a list of reserved site on a sub-directory Multisite installation.
     *
     * @since 4.4.0