wp_is_large_user_count

FUNCTION wp-includes\user.php (ligne 1556) github
Determines whether the site has a large number of users. The default criteria for a large site is more than 10,000 users.

Paramètres

Entrée :
$network_id = null
Sortie :
@param int|null $network_id ID of the network. Defaults to the current network.
@return bool Whether the site has a large number of users.

Utilisation

// Utilisation de la fonction wp_is_large_user_count
$result = wp_is_large_user_count($network_id = null);

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

Actualités

Chargement des actualités...