Adding Custom Fields to Emails – WooCommerce

Another day another snippet for WooCommerce, this time adding custom order meta fields to order email, yeah this is helpful for site administrator or site owner to check for custom order fields via email without looking ordered item in site dashboard, how handy is that?

Lets get started.

Below is a simple yet functional example of adding Appointment custom meta fields to order email

How about adding HTML code?

Yup I got you covered, but this time we use action instead of filter, so we’re FREE to add anything we want.

Hope that helps, happy coding ^_^

by Ryan Sutana