WP HOOKS
filtrod 6.8.0

wp_hash_password_options

Args 2Plik wp-includes/pluggable.phpDokumentacja WP ↗

Opis — z kodu źródłowego

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.

Parametry

ParametrTypOpis
$optionsarrayArray 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 | intThe hashing algorithm in use.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_hash_password_options', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii