Last active
November 5, 2017 22:32
-
-
Save bulini/d8a574a2544ddcc5bdca71d35607f7a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//cambio testo e oggetto email di cambio password | |
add_filter('password_change_email', 'change_password_mail_message', 10, 3 ); | |
function change_password_mail_message( $pass_change_mail, $user, $userdata ) { | |
$new_message_txt = __( 'Ciao ###USERNAME###, | |
ti confermiamo che la tua password è stata modificata. | |
Se non sei stato tu ad aver cambiato password, scrivici a info@xxxxxxxxx | |
Saluti.'); | |
$pass_change_mail[ 'subject' ] = 'Hai cambiato la password'; | |
$pass_change_mail[ 'message' ] = $new_message_txt; | |
return $pass_change_mail; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment