WooCommerce customized email only for processing and completed orders
I am using a plugin to send custom referral codes in the email orders but now I found that every order email has the code inserted. function gens_raf_customer_email( $order, $sent_to_admin, $plain_text ) { $user_id = ( version_compare( WC_VERSION, '2.7', '<'…