Code goes in function.php file of your active child theme (or active theme). It should work.
You will get something like:
add_filter( \'woocommerce_email_order_met