filtrod 3.7.0
password_reset_key_expired
Opis — z kodu źródłowego
Filters the return value of check_password_reset_key() when an old-style key or an expired key is used.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$return | \WP_Error | A WP_Error object denoting an expired key. Return a WP_User object to validate the key. |
$user_id | int | The matched user ID. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_reset_key_expired', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'password_reset_key_expired', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii