Additional order complete email

Is there a way to make this funktion send the extra email to a Dokan vendor and also ad some text right before the content of the email

Thanks

add_filter( ‘woocommerce_email_headers’, ‘mycustom_headers_filter_function’, 10, 2);

function mycustom_headers_filter_function( $headers, $object ) {
if ($object == ‘customer_completed_order’) {
$headers .= ‘BCC: My name <my@email.com>’ . “rn”;
}

return $headers;
}

Read more here:: Additional order complete email

Leave a Reply

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