filtrod 2.5.0
check_password
Opis — z kodu źródłowego
Filters whether the plaintext password matches the hashed password.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$check | bool | Whether the passwords match. |
$password | string | The plaintext password. |
$hash | string | The hashed password. |
$user_id | string | int | Optional ID of a user associated with the password. Can be empty. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'check_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'check_password', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii