Add custom user email to CC for specific Woocommerce email notification
问题 In Woocommerce I try to customize the code from this thread to add a custom email as "CC" email address in customer completed order email notification: /** * Function adds a BCC header to emails that match our array * * @param string $headers The default headers being used * @param string $object The email type/object that is being processed */ function add_cc_to_certain_emails( $headers, $object ) { // email types/objects to add cc to $cc_email = get_user_meta( $user_id, 'order_cc_email',