filtrod 6.8.0
password_needs_rehash
Opis — z kodu źródłowego
Filters whether the password hash needs to be rehashed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$needs_rehash | bool | Whether the password hash needs to be rehashed. |
$hash | string | The password hash. |
$user_id | string | int | Optional. ID of a user associated with the password. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_needs_rehash', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_needs_rehash', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii