Is it possible to add bbc to WordPress & WooCommerce emails

Original question from scot through the support : "I would like to bcc an internal email address on all outbound emails. Is this possible?"

Looking at the wp_mail() function here  https://core.trac.wordpress.org/browser/tags/4.4.1/src/wp-includes/pluggable.php looks like all the parameter are "hookable". Adding a BCC is made through headers so something like that should works :

add_filter('wp_mail', function($data) {

	if( empty($data['headers']) ){

	    $data['headers'] = array('bcc: email@domain.com');

	}
	elseif( is_array($data['headers']) ){

		$data['headers'][] = 'bcc: email@domain.com';
	
	}
	else{

		$data['headers'] = 'bcc: email@domain.com'."\r\n";

	}
	
	return $data;

});