Customer name in email subject
-
Hi guys, I have tried myself with no avail so hoping you can help. I have narrowed it down to class-wcmp-email-vendor-new-order.php & tried to edit directly, nothing worked so then add something to my functions.php to add the billing name to the subject line but nothing I do seems to work.
Can you kindly help on this one? Could the code below, found online, work with your hooks which I am unsure of?
function skyverge_add_customer_to_email_subject( $subject, $order ) {
$subject .= ' from ' . $order->billing_first_name . ' ' . $order->billing_last_name;
return $subject;
}
add_filter( 'woocommerce_email_subject_new_order', 'skyverge_add_customer_to_email_subject', 10, 2 );
- The topic ‘Customer name in email subject’ is closed to new replies.