password_needs_rehash

FILTER wp-includes\pluggable.php (ligne 2938) github
Filters whether the password hash needs to be rehashed.

Paramètres

Entrée :
$needs_rehash, $hash, $user_id
Sortie :
@param bool       $needs_rehash Whether the password hash needs to be rehashed.
@param string     $hash         The password hash.
@param string|int $user_id      Optional. ID of a user associated with the password.

Utilisation

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

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

Actualités

Chargement des actualités...