Add Content to the Woocommerce Customer Reset Password Email
In this post you will learn you how you can add custom content to the Woocommerce emails that will be sent to customers when they want to reset their password.
This is how the “Reset Password” Email looks like before adding the code:
You can add the content by adding the following code to your functions.php file:
// Add Content to the Woocommerce Customer Reset Password Email --------------- start // add_action ( 'woocommerce_email_header', 'arrow_design_add_content_specific_email_reset', 20, 4 ); function arrow_design_add_content_specific_email_reset( $email_heading, $email ) { if ( $email->id == 'customer_reset_password' ) { echo '<h2>Thanks for contacting us.</h2>'; //large, header text echo'<p>Your message Text</p>'; //your message echo '<br/>'; // this adds a space between your content echo $email_heading; // default wordpress pw reset email content - remove, if needed }//end check 'if' customer_reset_password email }//end function // Add Content to the Woocommerce Customer Reset Password Email --------------- end //
Conclusion
We hope this Add Content to the Woocommerce Customer Reset Password Email post was helpful and you are now able to integrate this also on your website! You can find more articles here:
Read another Woocommerce post : ‘Add Content to the Woocommerce Customer New Order Email‘
Arrow Design, based in Dublin, Ireland, provides quality website design services in Dublin and beyond at affordable prices. If you would like help with implementing the above code, or any wordpress website development project, contact us. We love website design and it shows! We provide custom wordpress plugin development, website design training and lots more.
We do it all, so you don’t have to!
Related Posts
Woocommerce Account Page Hook Guide
In this article you will find a visual hook guide for the Woocommerce Account Pages, like the Login/Register page, the Downloads page or the Orders page.
Woocommerce Single Product Page Hook Guide
In this article you will find a visual hook guide for the Woocommerce Single Product Page. This should help you to quickly and easily find the hook positions on the page.
Woocommerce PHP – Product Categories by Product ID
In this tutorial you will learn how to check if a product is assigned to a tag, a category or a custom taxonomy. You can check if a product is is on the shop page, in the cart, in an order & more.
…We do more, so you can do less 🙂