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 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:');

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

		$data['headers'][] = 'bcc:';

		$data['headers'] = 'bcc:'."\r\n";

	return $data;