Determines whether or not we have a large network. The default criteria for a large network is either more than 10,000 users or more than 10,000 sites. Plugins can alter this criteria using the {@see 'wp_is_large_network'} filter.
$using = 'sites', $network_id = null
Sortie :
@param string $using 'sites' or 'users'. Default is 'sites'. @param int|null $network_id ID of the network. Default is the current network. @return bool True if the network meets the criteria for large. False otherwise.
// Utilisation de la fonction wp_is_large_network
$result = wp_is_large_network($using = 'sites', $network_id = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...