akcjaod 6.2.0
wp_set_password
Opis — z kodu źródłowego
Fires after the user password is set.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$password | string | The plaintext password just set. |
$user_id | int | The ID of the user whose password was just set. |
$old_user_data | \WP_User | Object containing user's data prior to update. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_set_password', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_set_password', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii