Title: Lost password email text
Last modified: December 28, 2020

---

# Lost password email text

 *  Resolved [viesiissz](https://wordpress.org/support/users/viesiissz/)
 * (@viesiissz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/)
 * Hello!
 * I want change some thing in lost-password email text.
 * In email is showing (username:)
    How i can change to (Email:) ?
 * Picture:
    [https://ibb.co/yyXvSvB](https://ibb.co/yyXvSvB)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * (@bernattorras)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13838445)
 * Hi there,
 * All these email templates can be customized from your theme folder, so you can
   copy this file to your theme folder (for example: wp-content/themes/your-child-
   theme/woocommerce/emails/customer-reset-password.php) and change that line of
   code from there with the wanted string.
 * Alternatively, you could also use a plugin like [Say What](https://wordpress.org/plugins/say-what/)
   to customize this string from the backend (Tools>Text changes).
 * I hope it helps!
 *  [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * (@bernattorras)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13838452)
 * Here you can find more details about how to customize the default email templates:
   [https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/](https://woocommerce.com/posts/how-to-customize-emails-in-woocommerce/)
 *  Thread Starter [viesiissz](https://wordpress.org/support/users/viesiissz/)
 * (@viesiissz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13840926)
 * [@bernattorras](https://wordpress.org/support/users/bernattorras/)
 * Thanks you! I have already it.
 * My question is about that username change to e-email.
 * %user_login i need change to %user_email ?
 *  [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * (@bernattorras)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13841190)
 * Hi there,
 * Yes, the `$user_email` should be available on that template, so you can replace
   this line of code with:
 * `<p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_email));?
   ></p>`
 * If for some reason it isn’t working, you can always get the user email address
   with the following code:
 *     ```
       $user_info = get_userdata( $user_id );
       $user_email = $user_info->user_email;
       ```
   
 *  Thread Starter [viesiissz](https://wordpress.org/support/users/viesiissz/)
 * (@viesiissz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13841706)
 * [@bernattorras](https://wordpress.org/support/users/bernattorras/)
    Thanks for
   responsive ! 🙂
 * I tried
 * `echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_email ))."\
   n\n";`
 * But something not working.
 *  [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * (@bernattorras)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13842485)
 * In this case, please try to use the following lines instead:
 *     ```
       $user_info = get_userdata( $user_id );
       $user_email = $user_info->user_email;
       echo sprintf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_email ) ) . "\n\n";
       ```
   
 * Let us know if it does the trick!
 *  Thread Starter [viesiissz](https://wordpress.org/support/users/viesiissz/)
 * (@viesiissz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13842679)
 * [@bernattorras](https://wordpress.org/support/users/bernattorras/)
    Thank you!
   It’s work ! 🙂
 *  [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * (@bernattorras)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13844035)
 * Awesome! Thanks for letting us know! 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Lost password email text’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Bernat Torras (a11n)](https://wordpress.org/support/users/bernattorras/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/lost-password-email-text/#post-13844035)
 * Status: resolved