Skip to content

Instantly share code, notes, and snippets.

Last active Nov 5, 2017
What would you like to do?
//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
$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