filtrod 2.7.0
allow_password_reset
Opis — z kodu źródłowego
Filters whether to allow a password to be reset.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$allow | bool | Whether to allow the password to be reset. Default true. |
$user_id | int | The ID of the user attempting to reset a password. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allow_password_reset', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'allow_password_reset', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii