More merge tags in email ?

Let's say you allow your users to create an account during the checkout process.

That means you have a lot of data available for the customer new account email (in the $_POST array)

For instance, you can use the Billing First Name field to personalize more that important first email. Just like that :


// woocommerce_email_mbc_cna_intro_filter is used to customize the final text of the Customer New Account Email
// of course you will need to add the actual {{billing_first_name}} text in that option field.

add_filter('woocommerce_email_mbc_cna_intro_filter',function($content){

	if(isset($_POST['billing_first_name']))
	$content = str_replace('{{billing_first_name}}',$_POST['billing_first_name'], $content);

	return $content;

});