filtrod 2.8.0
retrieve_password_message
Opis — z kodu źródłowego
Filters the message body of the password reset mail.
If the filtered message is empty, the password reset email will not be sent.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$message | string | Email message. |
$key | string | The activation key. |
$user_login | string | The username for the user. |
$user_data | \WP_User | WP_User object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'retrieve_password_message', '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( 'retrieve_password_message', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii