×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Add another email recipient when order completed

When the order is completed an email is automatically sent to the customer. You can add an extra email recipient using this code.

		/**
 * Add another email recipient when order completed
 */

add_filter('woocommerce_email_recipient_customer_completed_order', 'cc_extra_email_recipient', 10, 2);

function cc_extra_email_recipient($recipient, $object) {

  $recipient = $recipient . ', extra_address@email.com';
  return $recipient;

}
	
   View Raw Code ID: 9902