Add the New order email notification attachment to the vendor email
In WooCommerce, I use woocommerce-product-vendors as multi vendor plugin. After checkout I receive as admin an a new order email notification with the attachment (uploaded file). But the vendor receive the same email but without the attachment. I need that the vendor receive the attachment too. Thanks You could try this code with a custom function hooked in woocommerce_email_recipient_new_order filter hook: add_filter('woocommerce_email_recipient_new_order', 'adding_vendor_email', 10, 2); function adding_vendor_email( $recipient, $order ) { if ( ! is_a( $order, 'WC_Order' ) ) return $recipient