How to Change WooCommerce Email Subject Lines

Hi, friends hope you are doing good, Today I am going to share very useful things How to Change Woocommerce email subject lines. In my recent project, my client asks to add the custom subject of all emails from his WooCommerce store. Below is the very simple code that will change email subject lines.

Never try to change in WooCommerce core files to change WooCommerce email subject lines, because it is very bad idea to do. In case if done that, you will loose your custom changes if WooCommerce plugin will update.

woocommerce-email-subject-lines

Woocommerce Email Filters

Below are the email filters to change the email subject line as you want. This is the simple filter which will override the default email subjects line. Use below filters in functions.php page of the current theme.
If you don’t want to add filters to your functions.php page, then you can also create a custom WordPress plugins for the same.

Apply WooCommerce Extra Fee
Woocommerce Search order by SKU
Integrate ccavenue payment gateway woocommerce
Getting Started With WooCommerce For Your Online Store

Woocommerce New Order Email

See below example how woocommerce_email_subject_new_order filter is override the default email subject line for new orders email.

You can change above functions as per your requirements using different filters. Do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to learn cool WordPress tutorials.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Solved Programs