How to add a reset password link to your WooCommerce emails

By default, WooCommerce's "Reset password" email includes a reset link, but if you're customizing that email — or building a new transactional email that needs one — you need a way to drop that link into your own template. Here's how to do it with CodePros Email Template Builder.

Why this comes up

If you've customized your WooCommerce reset-password email, or you're building a related email (a security notice, an account-update confirmation), you need the actual reset link to be dynamic — generated per customer, per request, not a static URL. That's what a template variable is for.

Add the reset password variable

  1. Open the email template in Email Template Builder's editor.
  2. Click into the text block where the link should go.
  3. Open the variable picker and choose the reset password variable — it inserts a placeholder that gets replaced with the customer's actual reset link when the email sends.
  4. Style it like any other text or button in the editor — the variable itself doesn't need any special formatting.
  5. Save and send a test email to confirm the link works end to end.

A couple of things to check

The variable only resolves correctly on WooCommerce's actual password-reset email hook — if you're trying to add it to an unrelated email (like an order confirmation), it won't have anything valid to insert. And always send yourself a real test email before publishing a change like this; a broken reset link is the kind of thing that generates support tickets fast.

Want more control over your transactional emails?

This is one of the things CodePros Email Template Builder handles out of the box — drag-and-drop editing for every WordPress and WooCommerce email, with template variables for the dynamic bits like this one.

Build every WooCommerce email like this one

CodePros Email Template Builder gives you a drag-and-drop editor and template variables for every WordPress and WooCommerce email — no code required.