validate_username

FUNCTION wp-includes\user.php (ligne 2102) github
Filters whether the given email exists.

Paramètres

Entrée :
$username
Sortie :
@param int|false $user_id The user ID associated with the email,
@param string    $email   The email to check for existence.
@param string $username Username.
@return bool Whether username given is valid.

Utilisation

// Utilisation de la fonction validate_username
$result = validate_username($username);

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

Actualités

Chargement des actualités...