I need to send the order confirmation E-Mail within Woocommerce to the store owner via a php function. I want to hook it to the following:
add_action( 'woocommerce_thankyou', '####', 55 );
But I don't know which funktion to call to fire the email? The E-Mail template is stored in the following directory and is called: woocommerce/templates/emails/admin-new-order.php Could you help me with this?
If you need any more details please leave a comment! Thanks!