Add Product Category to email subject WooCommerce

This snippet will add a new {product_category} placeholder to the email subject for the New Order email in WooCommerce.

So, for example, when I go to WooCommerce > settings > email > New Order > “manage”, I can have a subject line like this:
[{site_title}]: New order - [{product_category}] #{order_number}