wp_is_large_network

FUNCTION wp-includes\ms-functions.php (ligne 2694) github
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.

Paramètres

Entrée :
$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

// Utilisation de la fonction wp_is_large_network
$result = wp_is_large_network($using = 'sites', $network_id = null);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...