Subject in WooCommerce Order Emails

Category: WooCommerce

Change The Subject Using the WooCommerce Settings

Go to WooCommerce > Settings > Emails and then click on the email you want to change the subject of. You will find the field Subject. Type in a new subject and click Save.

Subject in WooCommerce Order Emails
Subject in WooCommerce Order Emails

Change the subject Using the functions.php File

To change the subject line in your order emails, open the functions.php file of your child theme and add the following snippet of code:

 * Change subject in WooCommerce Order Emails using the file functions.php
 * More tips:
 *Subject filters: 

add_filter('woocommerce_email_subject_new_order', 'change_admin_email_subject', 1, 2);

function change_admin_email_subject( $subject, $order ) {
	global $woocommerce;

	$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);

	$subject = sprintf( '[%s] New Customer Order (# %s) from Name %s %s', $blogname, $order->id, $order->billing_first_name, $order->billing_last_name );

	return $subject;


Purchase Email Templates

Each purchase of WET comes with 20 different styles —
and a lifetime of free fresh designs & bug-fix updates.

One purchase for all your future projects.