Filters the options passed to the password_hash() and password_needs_rehash() functions. The default hashing algorithm is bcrypt, but this can be changed via the {@see 'wp_hash_password_algorithm'} filter. You must ensure that the options are appropriate for the algorithm in use. The values of the algorithm constants are strings in PHP 7.4+ and integers in PHP 7.3 and earlier.
array(
Sortie :
@param array $options Array of options to pass to the password hashing functions. @param string|int $algorithm The hashing algorithm in use.
// Modifier la valeur avec le filtre 'wp_hash_password_options'
add_filter('wp_hash_password_options', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array() {
// Modifier la valeur
return array(;
}
Chargement des actualités...