• jsleon

    (@jsleon)


    Hi, When a user requests a change of password, this user receives a email notification. I want to know where is the content of this page on wordpress? Beacause I want to change the text…
    Thanks

Viewing 1 replies (of 1 total)
  • Pavel

    (@pavelk27)

    Hi,

    You can do this via the filter hook password_change_email. Below you’ll find an example on how to use the password_change_email filter to change your message text, add this code piece into your theme’s functions.php file:

    add_filter( 'password_change_email', 'change_password_mail_message', 10, 3 );
    
    function change_password_mail_message( $pass_change_mail, $user, $userdata ) {
      $new_message_txt = __( 'Some text ###USERNAME### more text
        even more text ###EMAIL### more text after more text
        last bit of text ###SITENAME###' );
      $pass_change_mail[ 'message' ] = $new_message_txt;
      return $pass_change_mail;
    }

    Let me know if it works for you.

    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Password : email notification’ is closed to new replies.