wp_hash_password_options
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
apply_filters( 'wp_hash_password_options', array $options, string $algorithm )
Описание
Алгоритм хеширования по умолчанию — bcrypt, но его можно изменить с помощью фильтра ‘wp_hash_password_algorithm’. Необходимо убедиться, что параметры подходят для используемого алгоритма.
Оригинал (английский)
The default hashing algorithm is bcrypt, but this can be changed via the ‘wp_hash_password_algorithm’ filter. You must ensure that the options are appropriate for the algorithm in use.
Фильтруемое значение
Параметры
$options
array
обязательный
$algorithm
string
обязательный
Исходный код
wp-includes/pluggable.php:2801
$options = apply_filters( 'wp_hash_password_options', array(), $algorithm );
История изменений
| Версия | Описание |
|---|---|
| 7.0.0 | The $algorithm parameter is now always a string. |
| 6.8.0 | Introduced. |

