random_password

FILTER wp-includes\pluggable.php (ligne 2983) github
Filters the randomly-generated password.

Paramètres

Entrée :
$password, $length, $special_chars, $extra_special_chars
Sortie :
@param string $password            The generated password.
@param int    $length              The length of password to generate.
@param bool   $special_chars       Whether to include standard special characters.
@param bool   $extra_special_chars Whether to include other special characters.

Utilisation

// Modifier la valeur avec le filtre 'random_password'
add_filter('random_password', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($password) {
    // Modifier la valeur
    return $password;
}

Actualités

Chargement des actualités...