Skip to content

Instantly share code, notes, and snippets.

@bulini
Last active November 5, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bulini/d8a574a2544ddcc5bdca71d35607f7a4 to your computer and use it in GitHub Desktop.
Save bulini/d8a574a2544ddcc5bdca71d35607f7a4 to your computer and use it in GitHub Desktop.
<?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