How to Change Woocommerce email subject lines

| Last Updated: | In: woocommerce, Wordpress, WordPress Beginners, WP Labs

Hi friends hop 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 ask to add 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 Filters

Below are the email filters to change the email subject line as you want. This is simple filter which will override the default email subjects line. Use below filters in functions.php page of current theme.
If you don’t want to add filters in 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 like & share with your friends if you like.

Tags: , , , , , ,

About: Prem Tiwari

Prem Tiwari is founder of and Software developer from New Delhi (India). Follow Prem's development codes on facebook, and make sure you check out for the latest in web development related Tips with the complete code.

You may also like:

Follow us!

Get Free Access of 350+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Learn how to implement security guideline in your WordPress site...


Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...