A simple, powerful and independent e-commerce platform.
Sell anything with ease.

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 . ', [email protected]';
  return $recipient;

}
	
View Raw Code ID: 9902