How to add email recipients on order completion in Woocomemrce?

In this tutorial we’ll learn how to add email recipients on order completion in Woocommerce. Shop owners often want to send emails to multiple recipients on order completion.

By default Woocommerce will only send email to admin/store owner on order completion. You don’t need to worry at all we are here to help you, you can add multiple recipients programmatically.

To do this add the following lines of code at the end of your theme’s functions.php file:

function add_multiple_email_recipients($recipient, $object) {
    $recipient = $recipient . ', abc@gmail.com';
    return $recipient;
}
add_filter( 'woocommerce_email_recipient_customer_completed_order', 'add_multiple_email_recipients', 10, 2);

You can add more than one recipient comma separated.

Now, go to your store and create an order. After that, go to orders under woocommerce in admin panel and complete that order:

After order completion the emails you’ve added will receive email.

Waqas

I hope you enjoy reading this blog post. If you want my team to do WooCommerce Maintenance for you, click here.

Leave a Comment

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