apply_filters( ‘wp_hash_password_options’, array $options, string $algorithm )

In this article

Filters the options passed to the password_hash() and password_needs_rehash() functions.

Description

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.

Parameters

$optionsarray
Array of options to pass to the password hashing functions.
By default this is an empty array which means the default options will be used.
$algorithmstring
The hashing algorithm in use.

Source

$options = apply_filters( 'wp_hash_password_options', array(), $algorithm );

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.